🔀 Merge pull request #1476 from CrazyWolf13/fix_hotkeys

[Fix] Hotkeys
This commit is contained in:
Alicia Sykes
2024-02-28 12:34:01 +00:00
committed by GitHub
2 changed files with 7 additions and 6 deletions

View File

@@ -93,8 +93,9 @@ export const getCustomColors = () => {
* So that when the hotkey is pressed, the app/ service can be launched
*/
export const getCustomKeyShortcuts = () => {
const Accumulator = new ConfigAccumulator();
const results = [];
const sections = config.sections || [];
const sections = filterUserSections(Accumulator.sections()) || [];
sections.forEach((section) => {
const itemsWithHotKeys = section.items.filter(item => item.hotkey);
results.push(itemsWithHotKeys.map(item => ({ hotkey: item.hotkey, url: item.url })));