From 98e9ef4b9cb49d3ae7c5787adb1a848d29df1462 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 15 Sep 2021 22:21:20 +0200 Subject: [PATCH] Sidebar: add shortcut for description box --- Sidebar.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Sidebar.qml b/Sidebar.qml index 7b65dae..6c45ccc 100644 --- a/Sidebar.qml +++ b/Sidebar.qml @@ -123,10 +123,24 @@ Page { onTextChanged: modified = true KeyNavigation.priority: KeyNavigation.BeforeItem KeyNavigation.tab: events + + Shortcut { + id: shortcutDescription + sequence: 'Ctrl+D' + onActivated: description.forceActiveFocus() + } + Label { + anchors { right: parent.right; bottom: parent.bottom; margins: 4 } + visible: !parent.activeFocus + text: shortcutDescription.nativeText + font.pixelSize: parent.font.pixelSize * 0.75 + color: 'gray' + } } } } + // Filter box. TextField { id: filter Layout.fillWidth: true @@ -148,6 +162,7 @@ Page { } } + // Event list. Frame { Layout.fillWidth: true Layout.fillHeight: true @@ -192,6 +207,7 @@ Page { } } + // Tags box. Flow { id: tags