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

Fix RawKeyboard exception #11

Merged
merged 1 commit into from
May 23, 2021
Merged

Fix RawKeyboard exception #11

merged 1 commit into from
May 23, 2021

Conversation

Coronon
Copy link
Contributor

@Coronon Coronon commented May 22, 2021

This pull request fixes #10. If we manually supply a FocusManager instance to BuildOwner, the system will not call registerGlobalHandlers() on it and therefore not try to override the global input event handler. This is explicitly stated in the documentation of BuildOwner:
"If the focusManager argument is not specified or is null, this will construct a new [FocusManager] and register its global input handlers via [FocusManager.registerGlobalHandlers], which will modify static state. Callers wishing to avoid altering this state can explicitly pass a focus manager here."

@Imgkl
Copy link
Owner

Imgkl commented May 23, 2021

Hey @Coronon,
Thanks for pointing it out. Will merge this and will update the package soon.
I really appreciate your contribution. 👍🏽✌🏽

@Imgkl Imgkl merged commit 2c7919f into Imgkl:main May 23, 2021
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

Successfully merging this pull request may close these issues.

OffStage not working: RawKeyboard.instance.keyEventHandler == null
2 participants