feat: add terminal keyboard shortcuts with cross-platform support

- Add splitTerminalRight, splitTerminalDown, closeTerminal to KeyboardShortcuts
- Wire up shortcuts in terminal view (Cmd+D, Cmd+Shift+D, Cmd+W on Mac)
- Auto-detect platform and use Ctrl instead of Cmd on Linux/Windows

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
SuperComboGamer
2025-12-13 01:28:58 -05:00
parent 11ddcfaf90
commit 2ebb650609
2 changed files with 66 additions and 1 deletions

View File

@@ -160,6 +160,11 @@ export interface KeyboardShortcuts {
cyclePrevProject: string;
cycleNextProject: string;
addProfile: string;
// Terminal shortcuts
splitTerminalRight: string;
splitTerminalDown: string;
closeTerminal: string;
}
// Default keyboard shortcuts
@@ -188,6 +193,11 @@ export const DEFAULT_KEYBOARD_SHORTCUTS: KeyboardShortcuts = {
cyclePrevProject: "Q", // Global shortcut
cycleNextProject: "E", // Global shortcut
addProfile: "N", // Only active in profiles view
// Terminal shortcuts (only active in terminal view)
splitTerminalRight: "Cmd+D",
splitTerminalDown: "Cmd+Shift+D",
closeTerminal: "Cmd+W",
};
export interface ImageAttachment {