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}`)
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user