left sidebar: fix entry focus on open

This commit is contained in:
end-4
2025-05-10 23:57:13 +02:00
parent 18366c147f
commit 6619989cf2
2 changed files with 1 additions and 6 deletions
@@ -30,12 +30,6 @@ Item {
Hyprland.dispatch(`exec mkdir -p ${faviconDownloadPath}`) Hyprland.dispatch(`exec mkdir -p ${faviconDownloadPath}`)
} }
Connections {
target: panelWindow
function onVisibleChanged(visible) {
messageInputField.forceActiveFocus()
}
}
onFocusChanged: (focus) => { onFocusChanged: (focus) => {
if (focus) { if (focus) {
messageInputField.forceActiveFocus() messageInputField.forceActiveFocus()
@@ -65,6 +65,7 @@ Scope { // Scope
target: sidebarRoot target: sidebarRoot
function onVisibleChanged() { function onVisibleChanged() {
delayedGrabTimer.start() delayedGrabTimer.start()
swipeView.children[0].children[0].children[sidebarRoot.selectedTab].forceActiveFocus()
} }
} }