mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-22 17:57:46 +00:00
- Preserve fast double-press habit: Ctrl+C twice = direct quit - Implement smart cleanup on single press with priority order: 1. Close dialogs (theme, auth, settings, etc.) like ESC key 2. Cancel ongoing streaming requests 3. Clear input buffer content 4. Show quit confirmation when all cleanup done - Special case: Ctrl+C in quit-confirm dialog = immediate exit - Extract dialog closing logic into reusable useDialogClose hook - Refactor handleExit to centralize all exit logic - Update help text and dialog hints to reflect new behavior - Fix delay issues in first Ctrl+C press by optimizing request cancellation Improves UX by making Ctrl+C context-aware while maintaining user habits.