aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/chat_input.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-18 23:44:05 +0100
committerfiaxh <git@mx.ax.lt>2017-03-18 23:44:05 +0100
commitbe2234835a96601ac7dfffa93bd27a70a02b299e (patch)
treee452bda72de538a209a913f900a059cbdc954b82 /main/src/ui/chat_input.vala
parent582cc78edd35d7d3a9ab6ddc579919306a2325f5 (diff)
downloaddino-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.vala2
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();