-
Notifications
You must be signed in to change notification settings - Fork 822
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
Ability to capture an 'enter' key press when focus is on a DataTable #5423
Comments
I searched for hours for some explicit explanation of what to do for this functionality and of course found it just after posting. https://textual.textualize.io/guide/input/#keyboard-input provides the answer in the form of Key Methods, namely a method called 'key_enter'. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
I would advise against using I suspect your example doesn't work because the DataTable already binds 'enter'. Which will send a |
I currently seem unable to capture a press of the enter key when focused on the DataTable widget. This would allow for more intuitive selection.
Here's the code I had hoped would work:
The text was updated successfully, but these errors were encountered: