[FEATURE] esc key to exit code edition preview window - vscode addin

Open 💬 0 comments Opened Jun 29, 2026 by Eraguzy

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

  1. Claude suggests an edit and opens the preview/diff view.
  1. I open the preview to review the proposed changes.
  1. After reviewing, I instinctively press Esc to close the preview, as this is a common shortcut for dismissing temporary views.
  1. Instead of closing the preview, Esc stops Claude's generation.
  1. 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_

View original on GitHub ↗