forked from Shinonome/dots-hyprland
left sidebar: fix entry focus on open
This commit is contained in:
@@ -30,12 +30,6 @@ Item {
|
||||
Hyprland.dispatch(`exec mkdir -p ${faviconDownloadPath}`)
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: panelWindow
|
||||
function onVisibleChanged(visible) {
|
||||
messageInputField.forceActiveFocus()
|
||||
}
|
||||
}
|
||||
onFocusChanged: (focus) => {
|
||||
if (focus) {
|
||||
messageInputField.forceActiveFocus()
|
||||
|
||||
@@ -65,6 +65,7 @@ Scope { // Scope
|
||||
target: sidebarRoot
|
||||
function onVisibleChanged() {
|
||||
delayedGrabTimer.start()
|
||||
swipeView.children[0].children[0].children[sidebarRoot.selectedTab].forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user