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
@ -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 New Issue
Block a user