|
|
@ -219,7 +219,7 @@ Rectangle { |
|
|
|
} else if (event.matches(StandardKey.InsertLineSeparator)) { |
|
|
|
} else if (event.matches(StandardKey.InsertLineSeparator)) { |
|
|
|
if (popup.opened) popup.close(); |
|
|
|
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(); |
|
|
|
room.input.send(); |
|
|
|
event.accepted = true; |
|
|
|
event.accepted = true; |
|
|
|
} |
|
|
|
} |
|
|
@ -234,7 +234,7 @@ Rectangle { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (!Settings.invertEnterKey && !Qt.inputMethod.visible || Qt.platform.os === "windows") { |
|
|
|
if (!Settings.invertEnterKey && (!Qt.inputMethod.visible || Qt.platform.os === "windows")) { |
|
|
|
room.input.send(); |
|
|
|
room.input.send(); |
|
|
|
event.accepted = true; |
|
|
|
event.accepted = true; |
|
|
|
} |
|
|
|
} |
|
|
|