Make focus sidepane keybind swipe if reduced

This commit is contained in:
miruka 2019-08-20 13:27:13 -04:00
parent e127b96158
commit 203eb3b299
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -74,6 +74,14 @@ HRectangle {
} }
function setFocus() {
forceActiveFocus()
if (reduce) {
pageLoader.item.currentIndex = 0
}
}
HColumnLayout { HColumnLayout {
anchors.fill: parent anchors.fill: parent