quickshell: escape always closes launcher

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-07-28 18:38:43 +01:00
parent dfe8c9ecdf
commit 1df7ebb302

View file

@ -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)