-
Notifications
You must be signed in to change notification settings - Fork 10
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 adding custom keybindings #31
Comments
well, the current design is using keycode map directly to action code. |
customizing the existing keybindings might be needed too, but I was not thinking about that, but about adding new ones: For example a library user might want to:
|
the mechanism to add additional keybinding is already there. you only need to add a public api to make it available to users. additional keybindings can be put into this Line 64 in d5af2db
but because nim-noise was designed with simplicity in mind at that time, you need to consider how to handle user data. user data typically can be handled using nim closure, object inheritance, or explicit user data when registering the additional keybinding proc. |
Hello, it seems this is not possible at the moment, but that it could be allowed by enabling the injection of custom procs to the Noise.procs list. Let me know what you think, thank you.
The text was updated successfully, but these errors were encountered: