mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Fix send message logic bug introduced with shift+enter setting
This commit is contained in:
parent
114fa0868a
commit
69c11d4533
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue