summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Donofry <rubberduckie3554@gmail.com>2022-12-28 18:51:30 -0500
committerJoseph Donofry <rubberduckie3554@gmail.com>2022-12-28 18:51:30 -0500
commit69c11d45331c153b0ea0676eecf4f42c2fdfad9b (patch)
tree9fe8a8b8b165a8e455ed4a8c91ee42369f2846a2
parentSkip notifying for your own messages (diff)
downloadnheko-69c11d45331c153b0ea0676eecf4f42c2fdfad9b.tar.xz
Fix send message logic bug introduced with shift+enter setting
-rw-r--r--resources/qml/MessageInput.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml

index 7f5f63ec..ab6e260f 100644 --- a/resources/qml/MessageInput.qml +++ b/resources/qml/MessageInput.qml
@@ -219,7 +219,7 @@ Rectangle { } else if (event.matches(StandardKey.InsertLineSeparator)) { if (popup.opened) popup.close(); - if (Settings.invertEnterKey && !Qt.inputMethod.visible || Qt.platform.os === "windows") { + if (Settings.invertEnterKey && (!Qt.inputMethod.visible || Qt.platform.os === "windows")) { room.input.send(); event.accepted = true; } @@ -234,7 +234,7 @@ Rectangle { return; } } - if (!Settings.invertEnterKey && !Qt.inputMethod.visible || Qt.platform.os === "windows") { + if (!Settings.invertEnterKey && (!Qt.inputMethod.visible || Qt.platform.os === "windows")) { room.input.send(); event.accepted = true; }