Merge pull request #1795 from q234rty/remove-virtual-keyboard-check

Always allow sending messages by enter even with IMEs
This commit is contained in:
DeepBlueV7.X 2024-09-24 18:30:52 +00:00 committed by GitHub
commit cc4ace3c12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,7 +173,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) {
room.input.send();
event.accepted = true;
}
@ -195,7 +195,7 @@ Rectangle {
return;
}
}
if (!Settings.invertEnterKey && (!Qt.inputMethod.visible || Qt.platform.os === "windows")) {
if (!Settings.invertEnterKey) {
room.input.send();
event.accepted = true;
}