Feature request for product/service
Cursor IDE
Describe the request
Feature request
Please add an option in Design Mode to either:
Preserve draft text when the user presses Esc (only unfocus / collapse the input without clearing it), or
Disable Esc from closing the element comment input while text is present.
Problem
In Design Mode (Glass / integrated browser), when I select a UI element and type change instructions in the inline comment input, pressing Esc accidentally closes the input and clears all unsaved text. There is no undo or recovery.
This is especially painful when:
I spend time writing a detailed prompt
I habitually press Esc (e.g. Vim user, or dismissing system overlays)
Multitask mode is active and focus is lost while another agent is streaming
Steps to reproduce
Open Agents Window and enter Design Mode (Cmd+Shift+D)
Click an element in the browser preview
Type a long comment in the inline input (do not submit)
Press Esc
Actual behavior: The comment input closes and all typed text is lost.
Expected behavior (either is fine):
Option A: Esc only unfocuses the field but keeps the draft when I re-select the same element
Option B: Esc does nothing while the comment input has unsaved text
Option C: A setting like “Design Mode: preserve draft on Esc” or “Design Mode: disable Esc to dismiss comment input”
Why this matters
Design Mode is meant for fast, in-context visual editing. Losing a long draft breaks flow and makes me avoid the inline comment input entirely. I currently work around it by using Cmd+L or Option+click to move context to Chat, but that is not always convenient for iterative visual edits.
Suggested implementation
If comment input is non-empty, Esc should not discard content by default
Optional Cursor setting under Browser / Design Mode:
designMode.preserveDraftOnEscape (default: true), or
designMode.disableEscapeToDismiss (default: false)
If dismissal is still allowed, show a confirmation when text length exceeds a threshold (similar to other “don’t lose my work” patterns)
Environment
OS: macOS
Layout: Glass / Agents Window
Feature: Design Mode element comment input
Contact
[email protected]
Thank you for considering this — Design Mode is very useful, and this small change would make it much safer to use for longer prompts.
Operating System (if it applies)
MacOS