|
@@ -245,6 +245,12 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
|
|
|
<VSCodeTextField
|
|
<VSCodeTextField
|
|
|
value={commandInput}
|
|
value={commandInput}
|
|
|
onInput={(e: any) => setCommandInput(e.target.value)}
|
|
onInput={(e: any) => setCommandInput(e.target.value)}
|
|
|
|
|
+ onKeyDown={(e: any) => {
|
|
|
|
|
+ if (e.key === 'Enter') {
|
|
|
|
|
+ e.preventDefault()
|
|
|
|
|
+ handleAddCommand()
|
|
|
|
|
+ }
|
|
|
|
|
+ }}
|
|
|
placeholder="Enter command prefix (e.g., 'git ')"
|
|
placeholder="Enter command prefix (e.g., 'git ')"
|
|
|
style={{ flexGrow: 1 }}
|
|
style={{ flexGrow: 1 }}
|
|
|
/>
|
|
/>
|