mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
Fix keyboard shortcuts: add comments for duplicate keys and increase maxLength for special characters
Co-authored-by: GTheMachine <156854865+GTheMachine@users.noreply.github.com>
This commit is contained in:
committed by
Kacper
parent
857f46f86a
commit
8095a3aef7
@@ -1422,9 +1422,9 @@ export function SettingsView() {
|
|||||||
setShortcutError(null);
|
setShortcutError(null);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
className="w-20 h-8 text-center font-mono"
|
className="w-24 h-8 text-center font-mono"
|
||||||
placeholder="Key"
|
placeholder="Key"
|
||||||
maxLength={1}
|
maxLength={2}
|
||||||
autoFocus
|
autoFocus
|
||||||
data-testid={`edit-shortcut-${key}`}
|
data-testid={`edit-shortcut-${key}`}
|
||||||
/>
|
/>
|
||||||
@@ -1534,9 +1534,9 @@ export function SettingsView() {
|
|||||||
setShortcutError(null);
|
setShortcutError(null);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
className="w-20 h-8 text-center font-mono"
|
className="w-24 h-8 text-center font-mono"
|
||||||
placeholder="Key"
|
placeholder="Key"
|
||||||
maxLength={1}
|
maxLength={2}
|
||||||
autoFocus
|
autoFocus
|
||||||
data-testid={`edit-shortcut-${key}`}
|
data-testid={`edit-shortcut-${key}`}
|
||||||
/>
|
/>
|
||||||
@@ -1649,9 +1649,9 @@ export function SettingsView() {
|
|||||||
setShortcutError(null);
|
setShortcutError(null);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
className="w-20 h-8 text-center font-mono"
|
className="w-24 h-8 text-center font-mono"
|
||||||
placeholder="Key"
|
placeholder="Key"
|
||||||
maxLength={1}
|
maxLength={2}
|
||||||
autoFocus
|
autoFocus
|
||||||
data-testid={`edit-shortcut-${key}`}
|
data-testid={`edit-shortcut-${key}`}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -78,15 +78,17 @@ export const DEFAULT_KEYBOARD_SHORTCUTS: KeyboardShortcuts = {
|
|||||||
toggleSidebar: "`",
|
toggleSidebar: "`",
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
addFeature: "N",
|
// Note: Some shortcuts share the same key (e.g., "N" for addFeature, newSession, addProfile)
|
||||||
addContextFile: "F",
|
// This is intentional as they are context-specific and only active in their respective views
|
||||||
startNext: "G",
|
addFeature: "N", // Only active in board view
|
||||||
newSession: "N",
|
addContextFile: "F", // Only active in context view
|
||||||
openProject: "O",
|
startNext: "G", // Only active in board view
|
||||||
projectPicker: "P",
|
newSession: "N", // Only active in agent view
|
||||||
cyclePrevProject: "Q",
|
openProject: "O", // Global shortcut
|
||||||
cycleNextProject: "E",
|
projectPicker: "P", // Global shortcut
|
||||||
addProfile: "N",
|
cyclePrevProject: "Q", // Global shortcut
|
||||||
|
cycleNextProject: "E", // Global shortcut
|
||||||
|
addProfile: "N", // Only active in profiles view
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface ImageAttachment {
|
export interface ImageAttachment {
|
||||||
|
|||||||
Reference in New Issue
Block a user