INPopoverController icon indicating copy to clipboard operation
INPopoverController copied to clipboard

Allow keyboard access in popover

Open triplef opened this issue 13 years ago • 5 comments

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 avatar Nov 25 '11 19:11 triplef

@triplef Did you fix this issue? I have the same issue with a tab view inside INPopoverController.

trojanfoe avatar Jul 03 '12 10:07 trojanfoe

@trojanfoe Unfortunately no. I ended up disabling keyboard access in popovers.

triplef avatar Jul 03 '12 14:07 triplef

This is due to the override of the contentView getter in INPopoverWindow.

thibaut-jarosz avatar Feb 12 '13 16:02 thibaut-jarosz

@thibaut-jarosz Any idea for a fix/workaround? Sounds like it might not be possible if we need to keep the contentView override.

triplef avatar Feb 12 '13 17:02 triplef

I'm working on a version that doesn't override the contentView view accessor. It's the only way to fix it.

thibaut-jarosz avatar Feb 12 '13 17:02 thibaut-jarosz