Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Ctrl+Q conflicts with system quit shortcut on Linux/Windows.

New behavior

  • Non-vim mode: Escape cancels edit
  • Vim mode: Escape goes to normal mode, second Escape cancels edit

Changes

  • Added escapeInNormalMode action to vim state machine
  • VimTextArea now exposes onEscapeInNormalMode callback
  • UI hints update dynamically based on vim mode (shows 'Esc×2 to cancel' when vim enabled)

Generated with mux

Ctrl+Q conflicts with system quit shortcut on Linux/Windows.

New behavior:
- Non-vim mode: Escape cancels edit
- Vim mode: Escape goes to normal mode, second Escape cancels edit

UI hints update dynamically based on vim mode:
- Shows 'Esc to cancel' in non-vim mode
- Shows 'Esc×2 to cancel' in vim mode

_Generated with mux_
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

- Use formatKeybind(KEYBINDS.CANCEL_EDIT) consistently instead of hardcoded 'Esc'
- Remove comment that repeated specific keybind values (brittle)
- Add AGENTS.md note about not repeating constants in comments
@ammar-agent ammar-agent force-pushed the fix-cancel-edit-keybind branch from a318f1c to 6905bf8 Compare December 3, 2025 01:46
When entering edit mode, save current input text and image attachments.
On cancel, restore both instead of leaving the edited message content.
@ammar-agent ammar-agent force-pushed the fix-cancel-edit-keybind branch from 6905bf8 to 43327ee Compare December 3, 2025 01:48
@ammario ammario merged commit 7ea8d93 into main Dec 3, 2025
15 checks passed
@ammario ammario deleted the fix-cancel-edit-keybind branch December 3, 2025 01:54
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.

2 participants