From 4f56ff663e6a8101b8593340d90d7c05e9215fc8 Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 27 Feb 2024 20:28:47 +0100 Subject: [PATCH] fixed hotkeys --- src/utils/ConfigHelpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/ConfigHelpers.js b/src/utils/ConfigHelpers.js index 474ae442..a49d13c5 100644 --- a/src/utils/ConfigHelpers.js +++ b/src/utils/ConfigHelpers.js @@ -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 })));