From 8730586cfdc85f9704c3d52914539897f7312e70 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 13 Dec 2022 18:09:34 +0100 Subject: Focus text field on key press (swallows first though...) --- resources/qml/TimelineView.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'resources/qml/TimelineView.qml') diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index dff23700..e168c883 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -28,6 +28,8 @@ Item { onRoomChanged: if (room != null) room.triggerSpecialEffects() + Keys.onPressed: if (!topBar.searchHasFocus) TimelineManager.focusMessageInput(); + Shortcut { sequence: StandardKey.Close onActivated: Rooms.resetCurrentRoom() -- cgit 1.4.1