Import keyboard navigation

* Aggressively set focus to message input box and fix #37
* Improve room switching #66
This commit is contained in:
Carl Schwan
2020-11-28 00:25:40 +01:00
parent 2a0b6c74f3
commit 4bff186a40
2 changed files with 31 additions and 0 deletions

View File

@@ -49,6 +49,11 @@ Kirigami.ScrollablePage {
switchRoomDown();
} else if (event.key === Qt.Key_PageUp) {
switchRoomUp();
} else if (!(event.modifiers & Qt.ControlModifier)) {
event.accepted = true;
chatTextInput.addText(event.text);
chatTextInput.focus();
return;
}
}