1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-06 12:32:07 -04:00

launcher: also allow context switching with alt+1/2/3/4

This commit is contained in:
bbedward
2026-05-06 09:21:02 -04:00
parent d49c49cd99
commit 5df2b5fc33

View File

@@ -121,6 +121,7 @@ FocusScope {
}
var hasCtrl = event.modifiers & Qt.ControlModifier;
var hasAlt = event.modifiers & Qt.AltModifier;
event.accepted = true;
switch (event.key) {
@@ -229,28 +230,28 @@ FocusScope {
}
return;
case Qt.Key_1:
if (hasCtrl) {
if (hasCtrl || hasAlt) {
controller.setMode("all");
return;
}
event.accepted = false;
return;
case Qt.Key_2:
if (hasCtrl) {
if (hasCtrl || hasAlt) {
controller.setMode("apps");
return;
}
event.accepted = false;
return;
case Qt.Key_3:
if (hasCtrl) {
if (hasCtrl || hasAlt) {
controller.setMode("files");
return;
}
event.accepted = false;
return;
case Qt.Key_4:
if (hasCtrl) {
if (hasCtrl || hasAlt) {
controller.setMode("plugins");
return;
}