mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
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:
parent
cd08a130c6
commit
15b9dbe98d
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ Rectangle {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!Qt.inputMethod.visible) {
|
if (!Qt.inputMethod.visible || Qt.platform.os === "windows") {
|
||||||
room.input.send();
|
room.input.send();
|
||||||
event.accepted = true;
|
event.accepted = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue