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

implement EventResult, global keyboard navigation #775

Merged
merged 9 commits into from
Aug 19, 2023
Merged

implement EventResult, global keyboard navigation #775

merged 9 commits into from
Aug 19, 2023

Conversation

flxzt
Copy link
Owner

@flxzt flxzt commented Aug 19, 2023

This PR refactors the Pens and Builders to return EventResult's to communicate whether the event was handled and/or should be propagated further.

If a event was not handled by the current Pen, the PenHolder now gets the chance to process it for global actions. Currently NavLeft, NavRight, NavUp and NavDown key presses are handled to move the view around.

@flxzt flxzt merged commit ecd4712 into main Aug 19, 2023
1 check passed
@flxzt flxzt deleted the event-result branch August 24, 2023 21:57
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.

1 participant