Replies: 2 comments
-
In case anyone else is affected by the lack of Alt keybindings, I'm working on it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is fixed by #3563. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(I've read the relevant FAQ.)
When I run
textual keys
and pressalt+x
, nothing happens. If I pressalt+x
again, I get:If I press
alt+x
andf
any number of times, nothing happens until I press anyalt+...
combination, which then prints all the collected key press events.I suspect this has something to do with how terminals provide
alt
combinations. (alt+x
is provided as two keys,escape
andx
.) Is that correct?I've been living in the terminal for decades. Translating escape sequences to
alt+...
keys is very common. This is usually done by waiting a short, configurable amount of time for the escape sequence to complete before defaulting to sending a singleescape
character. Emacs seems to wait indefinitely to complete escape sequences.Developers (and users if the developers think this should be configurable) can set this delay to 0 to get an immediate
escape
key. Or they could add a small delay (e.g. 30ms) and get an almost immediateescape
key and lots of additional keybindings.Is there any way I can configure this in Textual?
Would a PR that adds a configurable escape sequence delay be accepted?
I need lots of keybindings in my application and cutting the possible combinations almost in half would probably be a dealbreaker for me.
Beta Was this translation helpful? Give feedback.
All reactions