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

Abstracting key events from operable actions in components #7

Open
lukewilson2002 opened this issue Aug 31, 2021 · 0 comments
Open
Assignees
Labels
bug Something isn't working pkg/ui Relates to the UI package

Comments

@lukewilson2002
Copy link
Owner

Currently, every component handles key events their own way. This makes it impossible to change key bindings without recompiling the editor. Imagine if you could change your keybindings for any component or action without even restarting the editor. I know so futuristic.

So I want to make input events be triggered and handled at a core input loop level. The events are matched against a database which is the keybindings, and then based upon what a key matches against, we issue it to the component if it is focused. If the component is not focused and it was found to be the handler for our key, we just go to the next available component. Again, kinda based on the first-come first-serve rule I like to follow with this editor.

@lukewilson2002 lukewilson2002 added bug Something isn't working pkg/ui Relates to the UI package labels Aug 31, 2021
@lukewilson2002 lukewilson2002 self-assigned this Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg/ui Relates to the UI package
Projects
None yet
Development

No branches or pull requests

1 participant