diff options
author | fiaxh <git@mx.ax.lt> | 2017-05-11 11:05:51 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-05-11 11:07:31 +0200 |
commit | b09a056a13de131a4f2f072ffa2f795a0bb2abe7 (patch) | |
tree | 3762403eee488f4a23e35e448f54a003c3f4533d /main/src/ui/chat_input | |
parent | 31bbafa2c80fbf09b892c477232577224077c2b9 (diff) | |
download | dino-b09a056a13de131a4f2f072ffa2f795a0bb2abe7.tar.gz dino-b09a056a13de131a4f2f072ffa2f795a0bb2abe7.zip |
Send message on enter from numblock
Diffstat (limited to 'main/src/ui/chat_input')
-rw-r--r-- | main/src/ui/chat_input/view.vala | 2 |
1 files changed, 1 insertions, 1 deletions
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 != ""){ |