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.
This commit is contained in:
q234rty 2022-09-16 22:41:11 +08:00 committed by GitHub
parent cd08a130c6
commit 15b9dbe98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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