Adding a Shortcut
Keyboard shortcuts are centralized in app/config/shortcuts.ts.
- Register shortcut: Add a new entry to the
shortcutsobject. - Update UI Hint: Use the
<ShortcutHint>component to show the key combination to users. - Implement Logic: Use the
useShortcutshook or similar mechanism to trigger actions.
export const shortcuts = {
SEARCH: { key: 'k', meta: true, label: 'Search' },
HELP: { key: '?', label: 'Open Help' },
// Add your new shortcut here
};Last updated on