commit 83bf19ca1bc25c2162fa7e1d9f06644dd7e6b267
parent b085cf0e3025a513ebd8e5ff072f0a1fc19210f7
Author: TheJackiMonster <thejackimonster@gmail.com>
Date: Sun, 14 Nov 2021 01:00:07 +0100
Fixed mobile behavior to not send with enter
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ui/messenger.c b/src/ui/messenger.c
@@ -166,7 +166,8 @@ handle_send_text_key_press (GtkWidget *widget,
{
MESSENGER_Application *app = (MESSENGER_Application*) user_data;
- if ((event->state & GDK_SHIFT_MASK) ||
+ if ((app->ui.mobile) ||
+ (event->state & GDK_SHIFT_MASK) ||
((event->keyval != GDK_KEY_Return) &&
(event->keyval != GDK_KEY_KP_Enter)))
return FALSE;