feat: app launcher

This commit is contained in:
2026-02-05 18:43:54 +02:00
parent 887b477c5e
commit 65b87cb9c6
6 changed files with 440 additions and 3 deletions

View File

@@ -30,7 +30,11 @@ QtObject {
if (!ShellStateManager.shellOpen)
return false;
var context = ShellStateManager.quickSettingsOpen ? "quickSettings" : "topbar";
var context = "topbar";
if (ShellStateManager.appLauncherOpen)
context = "appLauncher";
else if (ShellStateManager.quickSettingsOpen)
context = "quickSettings";
var handler = handlers[context];
if (handler) {
var handled = handler(key);
@@ -39,7 +43,9 @@ QtObject {
}
if (key === Qt.Key_Escape || key === Qt.Key_Shift || key === Qt.Key_X) {
if (context === "quickSettings") {
if (context === "appLauncher") {
ShellStateManager.closeAppLauncher();
} else if (context === "quickSettings") {
ShellStateManager.closeQuickSettings();
} else if (context === "topbar") {
ShellStateManager.closeShell();