Skip to content

fix: confirm forms and modals with enter - #4449

Merged
JammingBen merged 1 commit into
mainfrom
fix/enter-confirms-forms
Nov 13, 2026
Merged

JammingBen merged 1 commit into
mainfrom
fix/enter-confirms-forms

Conversation

@JammingBen

Copy link
Copy Markdown
Member

Description

Pressing Enter in a text input now confirms or saves the surrounding modal or form, instead of doing nothing, cancelling or reloading the page.

  • Modals: Enter confirms the create link, create shortcut, expiry date, app token, change password and new contact dialogs (modal and mobile drawer). It does nothing while the confirm button is disabled or a confirmation is running.
  • Shortcut target input: Enter with the suggestion list open but nothing highlighted now submits the dialog instead of being swallowed.
  • Inline forms: Enter saves the Groups and Users edit panels in the admin settings (the Groups panel used to reload the page), the announcement banner text, the custom date range filter and the OCM incoming invitation token. It only saves when there are changes, the data is valid and no save is running.
  • Embed mode: Enter in the file name input selects the location, the same as the Save/Choose button.
  • Invite collaborators: Enter with an empty search and recipients selected shares. While typing a search, Enter still picks a suggestion.
  • OcSelect: the first Enter, which only opens the list, no longer submits a surrounding form.

Not in this PR: Esc to cancel (follow-up), and the select-only modals (quota, add to / remove from groups), where Enter keeps picking an option.

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

Related Issue

@JammingBen JammingBen self-assigned this Nov 12, 2026
Assisted-by: Claude Code:claude-opus-5-5
@AlexAndBear

Copy link
Copy Markdown
Member

Great 👍

@JammingBen
JammingBen merged commit 891c4e3 into main Nov 13, 2026
28 checks passed
@JammingBen
JammingBen deleted the fix/enter-confirms-forms branch November 13, 2026 06:29
@openclouders openclouders mentioned this pull request Nov 13, 2026
1 task
openclouders pushed a commit that referenced this pull request Nov 13, 2026
fix: confirm forms and modals with enter
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.

2 participants