-
Notifications
You must be signed in to change notification settings - Fork 250
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
[FEATURE] Allow customization of keybindings #740
Comments
Hi, and thanks for the report! The usual solution for shortcuts and custom input management is to handle it externally, from a wrapper view. In your case, you may be interested in
Now I agree that this relies on the view you want to control to expose what you need - if something is currently private and not available, we can absolutely consider making it public! |
Yeah we're using this wherever possible, but for some cases this doesn't work (mainly with the scrolling)
EDIT: Oh wow, while researching this, I discovered that the Before continuing with this issue, I'll research a bit more to find out if the issue I'm having is already "fixed". Anyways, thanks a lot already! |
Glad you found a solution! Also, I agree it would be great if |
Is your feature request related to a problem? Please describe.
I'm currently developing wiki-tui, where I want the user to be able to configure the keybindings used in the app (that includes scrolling, changing focus, etc.). Because the current keybindings are hardcoded into the individual view implementation, it is very hard (or impossible) to be able to change them and include new ones (for example scroll 10 lines down, etc.).
Describe the solution you'd like
It would be nice if we could change the keybindings of individual views and if we could have access to deeper levels of some views that are currently private (for example scrolling is abstracted away and we cannot have custom scrolling actions).
Describe alternatives you've considered
What I'm currently doing is copying the
ScrollView
andSelectView
codes and then implementing custom keybindings there. But that's tedious and a pain to update. I'm also wrapping views and layers to be able to change the events coming in.Additional context
If you want, I would be happy to try implementing this feature (of course, first discussing design choices and what needs to be implemented in detail)!
The text was updated successfully, but these errors were encountered: