diff options
author | fiaxh <git@mx.ax.lt> | 2017-03-18 23:44:05 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-03-18 23:44:05 +0100 |
commit | be2234835a96601ac7dfffa93bd27a70a02b299e (patch) | |
tree | e452bda72de538a209a913f900a059cbdc954b82 /main/src/ui/chat_input.vala | |
parent | 582cc78edd35d7d3a9ab6ddc579919306a2325f5 (diff) | |
download | dino-be2234835a96601ac7dfffa93bd27a70a02b299e.tar.gz dino-be2234835a96601ac7dfffa93bd27a70a02b299e.zip |
Preselect next conversation when closed and crossfade
Diffstat (limited to 'main/src/ui/chat_input.vala')
-rw-r--r-- | main/src/ui/chat_input.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/chat_input.vala b/main/src/ui/chat_input.vala index 2079d747..92d0ccc6 100644 --- a/main/src/ui/chat_input.vala +++ b/main/src/ui/chat_input.vala @@ -85,7 +85,7 @@ public class ChatInput : Box { check_convert_smiley(); } if (event.keyval == Key.Return) { - if (event.state == ModifierType.SHIFT_MASK) { + if ((event.state & ModifierType.SHIFT_MASK) > 0) { text_input.buffer.insert_at_cursor("\n", 1); } else if (text_input.buffer.text != ""){ send_text(); |