From 15b9dbe98db2cb00bd521a52f1fee96629593745 Mon Sep 17 00:00:00 2001 From: q234rty Date: Fri, 16 Sep 2022 22:41:11 +0800 Subject: [PATCH] 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. --- resources/qml/MessageInput.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }