Files
twenty/front/src/modules/hotkeys/constants/index.ts
T
Lucas Bordeau 66dcc9b2e1 Feat/better hotkeys scope (#526)
* Working version

* fix

* Fixed console log

* Fix lint

* wip

* Fix

* Fix

* consolelog

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-07-07 18:53:05 -07:00

18 lines
535 B
TypeScript

import { HotkeysScopeStackItem } from '../types/internal/HotkeysScopeStackItems';
import { InternalHotkeysScope } from '../types/internal/InternalHotkeysScope';
export const INITIAL_HOTKEYS_SCOPES: string[] = [InternalHotkeysScope.App];
export const ALWAYS_ON_HOTKEYS_SCOPES: string[] = [
InternalHotkeysScope.CommandMenu,
InternalHotkeysScope.App,
];
export const DEFAULT_HOTKEYS_SCOPE_STACK_ITEM: HotkeysScopeStackItem = {
scope: InternalHotkeysScope.App,
customScopes: {
'command-menu': true,
goto: true,
},
};