forked from Shinonome/dots-hyprland
left sidebar: fix focus
This commit is contained in:
@@ -114,12 +114,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: panelWindow
|
|
||||||
function onVisibleChanged(visible) {
|
|
||||||
tagInputField.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onFocusChanged: (focus) => {
|
onFocusChanged: (focus) => {
|
||||||
if (focus) {
|
if (focus) {
|
||||||
tagInputField.forceActiveFocus()
|
tagInputField.forceActiveFocus()
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ Scope { // Scope
|
|||||||
id: grab
|
id: grab
|
||||||
windows: [ sidebarRoot ]
|
windows: [ sidebarRoot ]
|
||||||
active: sidebarRoot.visible && !sidebarRoot.pin
|
active: sidebarRoot.visible && !sidebarRoot.pin
|
||||||
|
onActiveChanged: { // Focus the selected tab
|
||||||
|
if (active) swipeView.currentItem.forceActiveFocus()
|
||||||
|
}
|
||||||
onCleared: () => {
|
onCleared: () => {
|
||||||
if (!active) sidebarRoot.hide()
|
if (!active) sidebarRoot.hide()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user