Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow keyboard access in popover #4

Open
triplef opened this issue Nov 25, 2011 · 5 comments
Open

Allow keyboard access in popover #4

triplef opened this issue Nov 25, 2011 · 5 comments

Comments

@triplef
Copy link
Contributor

triplef commented Nov 25, 2011

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! :)

@trojanfoe
Copy link

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

@triplef
Copy link
Contributor Author

triplef commented Jul 3, 2012

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

@thibaut-jarosz
Copy link
Contributor

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

@triplef
Copy link
Contributor Author

triplef commented Feb 12, 2013

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

@thibaut-jarosz
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants