Skip to content

fix: cancel modals, forms, search inputs and apps with escape - #4458

Merged
JammingBen merged 1 commit into
mainfrom
fix/esc-cancels-input
Nov 16, 2026
Merged

JammingBen merged 1 commit into
mainfrom
fix/esc-cancels-input

Conversation

@JammingBen

@JammingBen JammingBen commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Description

Pressing Esc now cancels or closes the surrounding modal, form, search or app, instead of doing nothing or something surprising.

  • Modals: Esc closes the new contact modal and the expanded mail compose modal, via their existing unsaved changes confirmation. While that confirmation is open, Esc only closes the confirmation.
  • Admin settings: Esc reverts unsaved changes in the Users and Groups edit panels. Without changes, it still deselects the item as before.
  • Search bars: Esc clears the term in all browsers (Firefox didn't). Inside a modal, the first Esc clears the term and the next one closes the modal. On mobile, Esc closes the global search overlay instead of only clearing the term.
  • OcSelect: a custom mapKeydown (used by the tags select) is now combined with the select's own Enter/Esc handling instead of replacing it, so Esc closes the tags list without losing the focus. Typing or pasting into the search also opens the list now, so a pasted tag can be confirmed with Enter.
  • Space members filter: Esc and the close button close the filter and move the focus back to the filter toggle.
  • Vault unlock: Esc cancels, like the Cancel button.
  • Apps: Esc also closes the app when the focus is on the app top bar (e.g. after clicking Save) or has fallen back to the page. It does nothing while a modal is open.

AI assistance: Claude Code (claude-opus-5-5)

Related Issue

@JammingBen JammingBen self-assigned this Nov 13, 2026
Assisted-by: Claude Code:claude-opus-5-5
@JammingBen
JammingBen merged commit 94e6d39 into main Nov 16, 2026
28 checks passed
@JammingBen
JammingBen deleted the fix/esc-cancels-input branch November 16, 2026 07:20
openclouders pushed a commit that referenced this pull request Nov 16, 2026
fix: cancel modals, forms, search inputs and apps with escape
@openclouders openclouders mentioned this pull request Nov 16, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent behaviour of Esc on keyboard "Enter" on keyboard should confirm an action, while "Esc" should cancel it

2 participants