()
| 71 | * Includes non-rebindable shortcuts and terminal-reserved shortcuts. |
| 72 | */ |
| 73 | export function getReservedShortcuts(): ReservedShortcut[] { |
| 74 | const platform = getPlatform() |
| 75 | // Non-rebindable shortcuts first (highest priority) |
| 76 | const reserved = [...NON_REBINDABLE, ...TERMINAL_RESERVED] |
| 77 | |
| 78 | if (platform === 'macos') { |
| 79 | reserved.push(...MACOS_RESERVED) |
| 80 | } |
| 81 | |
| 82 | return reserved |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Normalize a key string for comparison (lowercase, sorted modifiers). |
no test coverage detected