INPopoverController
INPopoverController copied to clipboard
Allow keyboard access in popover
Does anyone know how to enable keyboard access (using the tab key to navigate elements) in the popover window? For some reason this is currently not possible.
I tried manually calling recalculateKeyViewLoop but that doesn't seem to be enough. Additionally setting the initial first responder for the window allows keyboard access, but then I’m running into an assertion failure in AppKit when tabbing past the last element in the window:
*** Assertion failure in + [NSView _findFirstKeyViewInDirection:forKeyLoopGroupingView:], /SourceCache/AppKit/AppKit-1138.23/AppKit.subproj/NSView.m:11046 this method is supposed to only be invoked on top level items
Any ideas are welcome! :)
@triplef Did you fix this issue? I have the same issue with a tab view inside INPopoverController.
@trojanfoe Unfortunately no. I ended up disabling keyboard access in popovers.
This is due to the override of the contentView getter in INPopoverWindow.
@thibaut-jarosz Any idea for a fix/workaround? Sounds like it might not be possible if we need to keep the contentView override.
I'm working on a version that doesn't override the contentView view accessor. It's the only way to fix it.