Fix "Send by enter" on Windows

Apparently on windows `Qt.inputMethod.visible` is always true when an input method is installed. Also on windows even after removing the check enter is still consumed by the input method, not nheko.
pull/1186/head
q234rty 2 years ago committed by GitHub
parent cd08a130c6
commit 15b9dbe98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      resources/qml/MessageInput.qml

@ -223,7 +223,7 @@ Rectangle {
return;
}
}
if (!Qt.inputMethod.visible) {
if (!Qt.inputMethod.visible || Qt.platform.os === "windows") {
room.input.send();
event.accepted = true;
}

Loading…
Cancel
Save