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

Key up/down events still change the focused actor when select box list is visible. #30

Open
mimoguz opened this issue Sep 30, 2024 · 2 comments

Comments

@mimoguz
Copy link

mimoguz commented Sep 30, 2024

Same with #19. One workaround/hack I found so far is adding a focus listener to select box's scroll pane to remove all focusable actors when it has focus. If I use a select box extended to use a ControllerList, this workaround stops working too.

@mimoguz
Copy link
Author

mimoguz commented Sep 30, 2024

Please ignore the last sentence, I was overriding the wrong method (getScrollPane instead of newScrollPane). Also, instead of removing focusable actors, I'm now extending ControllerMenuStage to add a flag to ignore navigation keys. That's still a hack though.

@mimoguz
Copy link
Author

mimoguz commented Sep 30, 2024

Another update: It seems modifying ControllerMenuStage's keyDown/keyUp methods to check super.keyDown/keyUp results first solves the issue.

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

1 participant