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