mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Merge pull request #128 from RooVetGit/enter_to_add_auto_approved_commands
Enter to add auto approved commands
This commit is contained in:
commit
5fcf6f0821
2 changed files with 7 additions and 1 deletions
2
.github/workflows/code-qa.yml
vendored
2
.github/workflows/code-qa.yml
vendored
|
|
@ -42,4 +42,4 @@ jobs:
|
|||
run: npm run install:all
|
||||
|
||||
- name: Run unit tests
|
||||
run: npx jest
|
||||
run: npm test
|
||||
|
|
@ -245,6 +245,12 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
|
|||
<VSCodeTextField
|
||||
value={commandInput}
|
||||
onInput={(e: any) => setCommandInput(e.target.value)}
|
||||
onKeyDown={(e: any) => {
|
||||
if (e.key === 'Enter') {
|
||||
e.preventDefault()
|
||||
handleAddCommand()
|
||||
}
|
||||
}}
|
||||
placeholder="Enter command prefix (e.g., 'git ')"
|
||||
style={{ flexGrow: 1 }}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue