[FEATURE] Feature Request or Guidance on Customizing Submit Key for SelectView
- Dominant language
- Rust
- Stars
- 4.8k
- Forks
- 270
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 2
Description
Hello Cursive Team,
I'm currently working on a Rust application using the Cursive TUI library and I'm utilizing the SelectView for a form-like interaction within my application. The default behavior of SelectView (and similar views) is to trigger a submit action or finalize a selection upon pressing the Enter key.
For my specific use case, I'm interested in customizing this behavior to use the Space key as the trigger for the submission action instead of the Enter key. This adjustment would better suit the interaction design of my application, making it more intuitive for my users.
I've gone through the documentation and examples but haven't found a clear way to implement this customization. I'm reaching out to ask if this functionality is currently supported by Cursive and, if so, could you please provide guidance on how to implement this? Alternatively, if this functionality is not supported, I'd like to formally request it as a feature addition to the library.
The ability to customize the key binding for submission actions in SelectView (and potentially other views) would greatly enhance the flexibility of Cursive for developing interactive TUI applications.
Thank you for your time and for the excellent work on the Cursive library. I look forward to your response.
Contributor guide
Assessment
This issue has not been assessed yet.