summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2023-05-13 00:06:52 +0000
committerGitHub <noreply@github.com>2023-05-13 00:06:52 +0000
commit4a060b59b2c659040a7052e2c6581fa29f77c98d (patch)
treef69a5aadc967003ea63aaacabdc7c187f82a82a6
parentd694a8f5cb5c3c72cb33bc9cdce9d980e9f8b43b (diff)
parent8887a07ec22d082c4c69cbc761726e223fb3cd01 (diff)
Merge pull request #1456 from Nheko-Reborn/inputfocus
Type keypresses that focus the input bar
-rw-r--r--resources/qml/TimelineView.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index 30ad9292..cd2aa158 100644
--- a/resources/qml/TimelineView.qml
+++ b/resources/qml/TimelineView.qml
@@ -30,7 +30,12 @@ Item {
onRoomChanged: if (room != null) room.triggerSpecialEffects()
// focus message input on key press, but not on Ctrl-C and such.
- Keys.onPressed: if (event.text && !topBar.searchHasFocus) TimelineManager.focusMessageInput();
+ Keys.onPressed: {
+ if (event.text && !topBar.searchHasFocus) {
+ TimelineManager.focusMessageInput();
+ room.input.setText(room.input.text + event.text);
+ }
+ }
Shortcut {
sequence: StandardKey.Close