quickshell: escape always closes launcher
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
dfe8c9ecdf
commit
1df7ebb302
1 changed files with 1 additions and 8 deletions
|
|
@ -1440,14 +1440,7 @@ in
|
||||||
clip: true
|
clip: true
|
||||||
onTextChanged: launcherPanel.refilter()
|
onTextChanged: launcherPanel.refilter()
|
||||||
|
|
||||||
Keys.onEscapePressed: {
|
Keys.onEscapePressed: launcherPanel.open = false
|
||||||
if (launcherPanel.activeCat !== "" && searchInput.text === "") {
|
|
||||||
launcherPanel.activeCat = "";
|
|
||||||
launcherPanel.refilter();
|
|
||||||
} else {
|
|
||||||
launcherPanel.open = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Keys.onUpPressed: launcherList.currentIndex = Math.max(0, launcherList.currentIndex - 1)
|
Keys.onUpPressed: launcherList.currentIndex = Math.max(0, launcherList.currentIndex - 1)
|
||||||
Keys.onDownPressed: launcherList.currentIndex = Math.min(launcherPanel.entries.length - 1, launcherList.currentIndex + 1)
|
Keys.onDownPressed: launcherList.currentIndex = Math.min(launcherPanel.entries.length - 1, launcherList.currentIndex + 1)
|
||||||
Keys.onTabPressed: launcherList.currentIndex = (launcherList.currentIndex + 1) % Math.max(1, launcherPanel.entries.length)
|
Keys.onTabPressed: launcherList.currentIndex = (launcherList.currentIndex + 1) % Math.max(1, launcherPanel.entries.length)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue