[FEATURE] esc key to exit code edition preview window - vscode addin
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
When reviewing a suggested edit in the VS Code extension, Claude opens a preview/diff view. To close it, users must click the X button or click elsewhere.
Many users instinctively press Esc to dismiss temporary views. Currently, Esc stops Claude's generation instead, which can accidentally interrupt the workflow and requires manually asking Claude (sending a message in the chat) to continue.
Proposed Solution
When a preview/diff view is focused:
Esc should close the preview.
Esc should only stop Claude's generation when there is no dismissible preview open.
This would align with common UI expectations, reduce accidental interruptions, and improve the keyboard-driven experience.
Alternative Solutions
Esc would not close the preview and that would be fine. but interrupting the askquestion/thinking process is quite annoying (and consumes more tokens)
Priority
Low - Nice to have
Feature Category
Other
Use Case Example
- Claude suggests an edit and opens the preview/diff view.
- I open the preview to review the proposed changes.
- After reviewing, I instinctively press Esc to close the preview, as this is a common shortcut for dismissing temporary views.
- Instead of closing the preview, Esc stops Claude's generation.
- I then need to explicitly ask Claude to continue, even though stopping the generation was not my intention. Eventually the next edition or proposed answers are quite different eventhough i was satisfied with the previous ones
Additional Context
_No response_