mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
feat: Allow Esc to exit shell mode
- Update InputPrompt.tsx to handle Esc key for exiting shell mode. - Modify ShellModeIndicator.tsx to reflect the new keybinding. Fixes https://buganizer.corp.google.com/issues/419087952
This commit is contained in:
parent
02ab0c234c
commit
872f308536
2 changed files with 5 additions and 1 deletions
|
|
@ -189,6 +189,10 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
|
|||
return true;
|
||||
}
|
||||
if (key.escape) {
|
||||
if (shellModeActive) {
|
||||
setShellModeActive(false);
|
||||
return;
|
||||
}
|
||||
completion.resetCompletionState();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue