mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-13 14:36:32 -04:00
feat: (Launcher/Spotlight): Updated w/New Settings & QOL features
- New Spotlight toggle to show/hide chips, off by default - Updated blur effects on all launcher inputs and footers - Fixed previous queries resurfacing - Upated Spotlight keyboard navigation - Added functionality to show and shortcut to keybinds from the Launcher tab
This commit is contained in:
@@ -463,6 +463,24 @@ Singleton {
|
||||
return _flatCache;
|
||||
}
|
||||
|
||||
function keysForAction(actionId) {
|
||||
if (!actionId)
|
||||
return [];
|
||||
for (let i = 0; i < _flatCache.length; i++) {
|
||||
const group = _flatCache[i];
|
||||
if (!group || group.action !== actionId || !Array.isArray(group.keys))
|
||||
continue;
|
||||
const keys = [];
|
||||
for (let k = 0; k < group.keys.length; k++) {
|
||||
const key = group.keys[k]?.key || "";
|
||||
if (key)
|
||||
keys.push(key);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
function saveBind(originalKey, bindData) {
|
||||
if (!bindData.key || !Actions.isValidAction(bindData.action))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user