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) {
|
||||
selIdx = 0;
|
||||
forceActiveFocus();
|
||||
_sessionAutoClose.restart();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -616,25 +615,12 @@ in
|
|||
|
||||
focus: open
|
||||
Keys.onEscapePressed: open = false
|
||||
Keys.onUpPressed: { selIdx = (selIdx + actions.length - 1) % actions.length; _sessionAutoClose.restart(); }
|
||||
Keys.onDownPressed: { selIdx = (selIdx + 1) % actions.length; _sessionAutoClose.restart(); }
|
||||
Keys.onTabPressed: { selIdx = (selIdx + 1) % actions.length; _sessionAutoClose.restart(); }
|
||||
Keys.onUpPressed: selIdx = (selIdx + actions.length - 1) % actions.length
|
||||
Keys.onDownPressed: selIdx = (selIdx + 1) % actions.length
|
||||
Keys.onTabPressed: selIdx = (selIdx + 1) % actions.length
|
||||
Keys.onReturnPressed: 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
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue