left sidebar: fix focus

This commit is contained in:
end-4
2025-05-20 10:15:29 +02:00
parent 4715b02a45
commit 0ab39c2c50
2 changed files with 3 additions and 6 deletions
@@ -114,12 +114,6 @@ Item {
}
}
Connections {
target: panelWindow
function onVisibleChanged(visible) {
tagInputField.forceActiveFocus()
}
}
onFocusChanged: (focus) => {
if (focus) {
tagInputField.forceActiveFocus()
@@ -58,6 +58,9 @@ Scope { // Scope
id: grab
windows: [ sidebarRoot ]
active: sidebarRoot.visible && !sidebarRoot.pin
onActiveChanged: { // Focus the selected tab
if (active) swipeView.currentItem.forceActiveFocus()
}
onCleared: () => {
if (!active) sidebarRoot.hide()
}