diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-11-14 01:00:07 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-11-14 01:00:07 +0100 |
commit | 83bf19ca1bc25c2162fa7e1d9f06644dd7e6b267 (patch) | |
tree | dea81801f84fd9a0f533ca36454caa76772fdb8d | |
parent | b085cf0e3025a513ebd8e5ff072f0a1fc19210f7 (diff) | |
download | messenger-gtk-83bf19ca1bc25c2162fa7e1d9f06644dd7e6b267.tar.gz messenger-gtk-83bf19ca1bc25c2162fa7e1d9f06644dd7e6b267.zip |
Fixed mobile behavior to not send with enter
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | src/ui/messenger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/messenger.c b/src/ui/messenger.c index 9976e18..daabd17 100644 --- a/src/ui/messenger.c +++ b/src/ui/messenger.c | |||
@@ -166,7 +166,8 @@ handle_send_text_key_press (GtkWidget *widget, | |||
166 | { | 166 | { |
167 | MESSENGER_Application *app = (MESSENGER_Application*) user_data; | 167 | MESSENGER_Application *app = (MESSENGER_Application*) user_data; |
168 | 168 | ||
169 | if ((event->state & GDK_SHIFT_MASK) || | 169 | if ((app->ui.mobile) || |
170 | (event->state & GDK_SHIFT_MASK) || | ||
170 | ((event->keyval != GDK_KEY_Return) && | 171 | ((event->keyval != GDK_KEY_Return) && |
171 | (event->keyval != GDK_KEY_KP_Enter))) | 172 | (event->keyval != GDK_KEY_KP_Enter))) |
172 | return FALSE; | 173 | return FALSE; |