Make focus sidepane keybind swipe if reduced
This commit is contained in:
parent
e127b96158
commit
203eb3b299
|
@ -38,7 +38,7 @@ Item {
|
|||
|
||||
Shortcut {
|
||||
sequences: settings.keys ? settings.keys.focusSidePane : []
|
||||
onActivated: mainUI.sidePane.forceActiveFocus()
|
||||
onActivated: mainUI.sidePane.setFocus()
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
|
|
|
@ -74,6 +74,14 @@ HRectangle {
|
|||
}
|
||||
|
||||
|
||||
function setFocus() {
|
||||
forceActiveFocus()
|
||||
if (reduce) {
|
||||
pageLoader.item.currentIndex = 0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
HColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user