Sidebar: add shortcut for description box
This commit is contained in:
parent
97422bb60a
commit
98e9ef4b9c
1 changed files with 16 additions and 0 deletions
16
Sidebar.qml
16
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue