mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-25 22:55:32 +02:00
fixed hotkeys
This commit is contained in:
parent
1658090008
commit
4f56ff663e
@ -93,8 +93,9 @@ export const getCustomColors = () => {
|
|||||||
* So that when the hotkey is pressed, the app/ service can be launched
|
* So that when the hotkey is pressed, the app/ service can be launched
|
||||||
*/
|
*/
|
||||||
export const getCustomKeyShortcuts = () => {
|
export const getCustomKeyShortcuts = () => {
|
||||||
|
const Accumulator = new ConfigAccumulator();
|
||||||
const results = [];
|
const results = [];
|
||||||
const sections = config.sections || [];
|
const sections = filterUserSections(Accumulator.sections()) || [];
|
||||||
sections.forEach((section) => {
|
sections.forEach((section) => {
|
||||||
const itemsWithHotKeys = section.items.filter(item => item.hotkey);
|
const itemsWithHotKeys = section.items.filter(item => item.hotkey);
|
||||||
results.push(itemsWithHotKeys.map(item => ({ hotkey: item.hotkey, url: item.url })));
|
results.push(itemsWithHotKeys.map(item => ({ hotkey: item.hotkey, url: item.url })));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user