Ignore escape and other keys when auto focussing

Fix #92
This commit is contained in:
Carl Schwan
2020-12-02 17:33:44 +01:00
parent 8387757b13
commit 0f4a0006a9

View File

@@ -73,7 +73,7 @@ Kirigami.ScrollablePage {
switchRoomDown();
} else if (event.key === Qt.Key_PageUp) {
switchRoomUp();
} else if (!(event.modifiers & Qt.ControlModifier) && event.key !== Qt.Key_Delete && event.key !== Qt.Key_Space) {
} else if (!(event.modifiers & Qt.ControlModifier) && event.key < Qt.Key_Escape) {
event.accepted = true;
chatTextInput.addText(event.text);
chatTextInput.focus();