From 8887a07ec22d082c4c69cbc761726e223fb3cd01 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Fri, 12 May 2023 20:04:35 -0400 Subject: [PATCH] Type keypresses that focus the input bar --- resources/qml/TimelineView.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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