X Tutup
Skip to content

desktop: cancel compose context with Escape key (#6612)#6635

Open
4RH1T3CT0R7 wants to merge 1 commit intosimplex-chat:masterfrom
4RH1T3CT0R7:fix/6612-esc-cancel-edit
Open

desktop: cancel compose context with Escape key (#6612)#6635
4RH1T3CT0R7 wants to merge 1 commit intosimplex-chat:masterfrom
4RH1T3CT0R7:fix/6612-esc-cancel-edit

Conversation

@4RH1T3CT0R7
Copy link

@4RH1T3CT0R7 4RH1T3CT0R7 commented Feb 14, 2026

Summary

  • Add Escape key handling in the desktop compose text field to cancel the current compose context (editing, quoting, forwarding, reporting)
  • When editing: Escape clears compose state entirely (same as clicking the X button)
  • When quoting/forwarding/reporting: Escape removes the context but preserves typed text
  • When no context is active: Escape is not consumed and propagates normally

Closes #6612

Test plan

  • Start editing a message, press Escape -edit cancelled, compose area cleared
  • Start replying to a message (quote), press Escape - quote removed, typed text preserved
  • Forward a message, press Escape -forward context removed
  • Report a message, press Escape -report context removed
  • Type in empty compose area (no context), press Escape - nothing happens, event propagates
  • Verify Enter, Shift+Enter, Up arrow, Ctrl+V still work correctly

@github-actions
Copy link

github-actions bot commented Feb 14, 2026

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@4RH1T3CT0R7
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup