fix: use Alt-based shortcuts to avoid browser conflicts

- Split right: Alt+D
- Split down: Alt+Shift+D
- Close terminal: Alt+W

Alt modifier avoids conflicts with both terminal signals and browser shortcuts.

🤖 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:32:36 -05:00
parent 998ad354d2
commit 8eb374d77c
2 changed files with 12 additions and 7 deletions

View File

@@ -360,11 +360,16 @@ export function TerminalView() {
const needsShift = parts.includes('shift');
const needsAlt = parts.includes('alt');
// Check modifiers
const cmdMatches = needsCmd ? cmdOrCtrl : !cmdOrCtrl;
const shiftMatches = needsShift ? e.shiftKey : !e.shiftKey;
const altMatches = needsAlt ? e.altKey : !e.altKey;
return (
e.key.toLowerCase() === key &&
cmdOrCtrl === needsCmd &&
e.shiftKey === needsShift &&
e.altKey === needsAlt
cmdMatches &&
shiftMatches &&
altMatches
);
};