Skip to content
Snippets Groups Projects
Commit 69c11d45 authored by Joe Donofry's avatar Joe Donofry
Browse files

Fix send message logic bug introduced with shift+enter setting

parent 114fa086
No related branches found
No related tags found
1 merge request!23Fix send message logic bug introduced with shift+enter setting
Pipeline #4060 failed
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment