mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
feat(cli): support single Ctrl+C to cancel streaming, preserving double Ctrl+C to exit (#5838)
This commit is contained in:
@@ -56,9 +56,9 @@ export const ToolConfirmationMessage: React.FC<
|
||||
onConfirm(outcome);
|
||||
};
|
||||
|
||||
useInput((_, key) => {
|
||||
useInput((input, key) => {
|
||||
if (!isFocused) return;
|
||||
if (key.escape) {
|
||||
if (key.escape || (key.ctrl && (input === 'c' || input === 'C'))) {
|
||||
handleConfirm(ToolConfirmationOutcome.Cancel);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user