From b09a056a13de131a4f2f072ffa2f795a0bb2abe7 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 11 May 2017 11:05:51 +0200 Subject: Send message on enter from numblock --- main/src/ui/chat_input/view.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui/chat_input') diff --git a/main/src/ui/chat_input/view.vala b/main/src/ui/chat_input/view.vala index c0acfcfa..3c5baa41 100644 --- a/main/src/ui/chat_input/view.vala +++ b/main/src/ui/chat_input/view.vala @@ -72,7 +72,7 @@ public class View : Box { } private bool on_text_input_key_press(EventKey event) { - if (event.keyval == Key.Return) { + if (event.keyval in new uint[]{Key.Return, Key.KP_Enter}) { if ((event.state & ModifierType.SHIFT_MASK) > 0) { text_input.buffer.insert_at_cursor("\n", 1); } else if (text_input.buffer.text != ""){ -- cgit v1.2.3-70-g09d2