aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/chat_input.vala
diff options
context:
space:
mode:
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();