summary refs log tree commit diff
diff options
context:
space:
mode:
authorq234rty <q23456yuiop@gmail.com>2022-09-16 22:41:11 +0800
committerGitHub <noreply@github.com>2022-09-16 22:41:11 +0800
commit15b9dbe98db2cb00bd521a52f1fee96629593745 (patch)
treed927f7fd8aeab57719b779fbdc91d8015541d3ab
parentMake emoji escaping less aggressive (diff)
downloadnheko-15b9dbe98db2cb00bd521a52f1fee96629593745.tar.xz
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.
-rw-r--r--resources/qml/MessageInput.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml

index ab37a3a8..6848f85c 100644 --- a/resources/qml/MessageInput.qml +++ b/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; }