mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 21:03:08 +00:00
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:
@@ -360,11 +360,16 @@ export function TerminalView() {
|
|||||||
const needsShift = parts.includes('shift');
|
const needsShift = parts.includes('shift');
|
||||||
const needsAlt = parts.includes('alt');
|
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 (
|
return (
|
||||||
e.key.toLowerCase() === key &&
|
e.key.toLowerCase() === key &&
|
||||||
cmdOrCtrl === needsCmd &&
|
cmdMatches &&
|
||||||
e.shiftKey === needsShift &&
|
shiftMatches &&
|
||||||
e.altKey === needsAlt
|
altMatches
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -195,10 +195,10 @@ export const DEFAULT_KEYBOARD_SHORTCUTS: KeyboardShortcuts = {
|
|||||||
addProfile: "N", // Only active in profiles view
|
addProfile: "N", // Only active in profiles view
|
||||||
|
|
||||||
// Terminal shortcuts (only active in terminal view)
|
// Terminal shortcuts (only active in terminal view)
|
||||||
// Using Shift modifier to avoid conflicts with terminal signals (Ctrl+D=EOF, Ctrl+W=delete word)
|
// Using Alt modifier to avoid conflicts with both terminal signals AND browser shortcuts
|
||||||
splitTerminalRight: "Cmd+Shift+D",
|
splitTerminalRight: "Alt+D",
|
||||||
splitTerminalDown: "Cmd+Shift+E",
|
splitTerminalDown: "Alt+Shift+D",
|
||||||
closeTerminal: "Cmd+Shift+W",
|
closeTerminal: "Alt+W",
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface ImageAttachment {
|
export interface ImageAttachment {
|
||||||
|
|||||||
Reference in New Issue
Block a user