Cannot bind to Control+Enter or Shift+Enter for chat-like behavior in TextArea #4216
-
Based on these set of keys, I do not see a binding for Control+Enter or Control+Shift (by itself): https://github.com/Textualize/textual/blob/main/src/textual/keys.py Is there a technical limitation that prevents these keys from used? This binding would be particularly useful for TextArea, where the user can distinguish between "submit" and "newline". For example, in most chat apps you can press one of these sequences to generate a newline, where normally pressing enter would immediately send the text. If I were to build a chat app with Textual, how would I mimic this behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You may find this FAQ entry helpful here. |
Beta Was this translation helpful? Give feedback.
You may find this FAQ entry helpful here.