Sidebar: add shortcut for description box

This commit is contained in:
Timotej Lazar 2021-09-15 22:21:20 +02:00
parent 97422bb60a
commit 98e9ef4b9c
No known key found for this signature in database
GPG key ID: B6F38793D143456F

View file

@ -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