diff options
author | fiaxh <git@lightrise.org> | 2024-07-13 12:18:28 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2024-07-20 19:15:13 +0200 |
commit | ca980ea409b75025aa8218782d415ba9cf69e1c6 (patch) | |
tree | 02509b9b808e92e0bb3bbac44886d692a88fff3d /main/src | |
parent | c95b65e5b47f22b1827f351a59cabb8e5f776def (diff) | |
download | dino-ca980ea409b75025aa8218782d415ba9cf69e1c6.tar.gz dino-ca980ea409b75025aa8218782d415ba9cf69e1c6.zip |
Fix shift+enter in chat input not scrolling down
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/ui/chat_input/chat_text_view.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/ui/chat_input/chat_text_view.vala b/main/src/ui/chat_input/chat_text_view.vala index 72ebc845..aa246d8d 100644 --- a/main/src/ui/chat_input/chat_text_view.vala +++ b/main/src/ui/chat_input/chat_text_view.vala @@ -102,7 +102,8 @@ public class ChatTextView : Box { } if ((state & ModifierType.SHIFT_MASK) > 0) { - text_view.buffer.insert_at_cursor("\n", 1); + // Let the default handler normally insert a newline if shift was hold + return false; } else if (text_view.buffer.text.strip() != "") { send_text(); } |