Files
the-other-dude/frontend/src/lib/shortcuts.ts
Jason Staack b840047e19 feat: The Other Dude v9.0.1 — full-featured email system
ci: add GitHub Pages deployment workflow for docs site

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 19:30:44 -05:00

30 lines
1.2 KiB
TypeScript

export interface ShortcutDef {
key: string // Display key(s): "?", "g d", "j", "Cmd+K"
description: string // What it does
category: 'global' | 'navigation' | 'device-list'
}
export const shortcuts: ShortcutDef[] = [
// Global
{ key: '?', description: 'Show keyboard shortcuts', category: 'global' },
{ key: 'Cmd+K', description: 'Open command palette', category: 'global' },
{ key: '[', description: 'Toggle sidebar', category: 'global' },
// Navigation (g prefix = "go to")
{ key: 'g d', description: 'Go to Dashboard', category: 'navigation' },
{ key: 'g a', description: 'Go to Alerts', category: 'navigation' },
{ key: 'g t', description: 'Go to Topology', category: 'navigation' },
{ key: 'g f', description: 'Go to Firmware', category: 'navigation' },
// Device list
{ key: 'j', description: 'Next device', category: 'device-list' },
{ key: 'k', description: 'Previous device', category: 'device-list' },
{ key: 'Enter', description: 'Open selected device', category: 'device-list' },
]
export const categoryLabels: Record<ShortcutDef['category'], string> = {
global: 'Global',
navigation: 'Navigation',
'device-list': 'Device List',
}