From 6762032c53dd2efb06b199da31bd8ce9a27604fb Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 14 Dec 2022 19:04:08 +0100 Subject: [PATCH] Fix copy and paste again --- resources/qml/TimelineView.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index e168c883..14b74e68 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -28,7 +28,8 @@ Item { onRoomChanged: if (room != null) room.triggerSpecialEffects() - Keys.onPressed: if (!topBar.searchHasFocus) TimelineManager.focusMessageInput(); + // focus message input on key press, but not on Ctrl-C and such. + Keys.onPressed: if (event.text && !topBar.searchHasFocus) TimelineManager.focusMessageInput(); Shortcut { sequence: StandardKey.Close