quickshell: drop session menu auto-close timer too
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
83b4c5ef09
commit
a772034220
1 changed files with 3 additions and 17 deletions
|
|
@ -604,7 +604,6 @@ in
|
||||||
if (open) {
|
if (open) {
|
||||||
selIdx = 0;
|
selIdx = 0;
|
||||||
forceActiveFocus();
|
forceActiveFocus();
|
||||||
_sessionAutoClose.restart();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -616,25 +615,12 @@ in
|
||||||
|
|
||||||
focus: open
|
focus: open
|
||||||
Keys.onEscapePressed: open = false
|
Keys.onEscapePressed: open = false
|
||||||
Keys.onUpPressed: { selIdx = (selIdx + actions.length - 1) % actions.length; _sessionAutoClose.restart(); }
|
Keys.onUpPressed: selIdx = (selIdx + actions.length - 1) % actions.length
|
||||||
Keys.onDownPressed: { selIdx = (selIdx + 1) % actions.length; _sessionAutoClose.restart(); }
|
Keys.onDownPressed: selIdx = (selIdx + 1) % actions.length
|
||||||
Keys.onTabPressed: { selIdx = (selIdx + 1) % actions.length; _sessionAutoClose.restart(); }
|
Keys.onTabPressed: selIdx = (selIdx + 1) % actions.length
|
||||||
Keys.onReturnPressed: activate(actions[selIdx].act)
|
Keys.onReturnPressed: activate(actions[selIdx].act)
|
||||||
Keys.onEnterPressed: activate(actions[selIdx].act)
|
Keys.onEnterPressed: activate(actions[selIdx].act)
|
||||||
|
|
||||||
Timer {
|
|
||||||
id: _sessionAutoClose
|
|
||||||
interval: 2500
|
|
||||||
onTriggered: sessionMenu.open = false
|
|
||||||
}
|
|
||||||
|
|
||||||
HoverHandler {
|
|
||||||
onHoveredChanged: {
|
|
||||||
if (hovered) _sessionAutoClose.stop();
|
|
||||||
else if (sessionMenu.open) _sessionAutoClose.restart();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Content pinned to the column edge, revealed by the grow
|
// Content pinned to the column edge, revealed by the grow
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue