refactor(ui): centralize shortcut schema

This commit is contained in:
ChangeHow
2026-08-06 14:18:15 +08:00
parent 4c5421a7af
commit bb25b68657
21 changed files with 610 additions and 994 deletions
+29
View File
@@ -0,0 +1,29 @@
export {
eventMatchesShortcut,
eventMatchesShortcutPrefix,
formatShortcutForDisplay,
getModifierLabel,
getShortcutConflict,
isRiskyBrowserShortcut,
isShortcutPrefixHeld,
keyToShortcutToken,
normalizeCombo,
parseShortcut,
UNASSIGNED_SHORTCUT,
} from './bindings';
export type { ShortcutCombo } from './bindings';
export { ShortcutDispatcher } from './dispatcher';
export { shortcutRegistry } from './registry';
export type { ShortcutHandler } from './registry';
export {
getCustomizableShortcutActions,
getEffectiveShortcutCombo,
getEffectiveShortcutPrefix,
getShortcutAction,
SHORTCUT_SCHEMA,
} from './schema';
export type {
CustomizableShortcutAction,
ShortcutActionId,
ShortcutCategory,
} from './schema';