diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2021-09-15 22:21:20 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2021-09-16 20:34:17 +0200 |
| commit | 98e9ef4b9cb49d3ae7c5787adb1a848d29df1462 (patch) | |
| tree | e8103e8bfe597d83216baaeaf3ae9421ddc4e50e | |
| parent | 97422bb60a55017503b67d10c86b72e8591def5d (diff) | |
Sidebar: add shortcut for description box
| -rw-r--r-- | Sidebar.qml | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
