You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Enter" on keyboard should confirm an action, while "Esc" should cancel it #2994
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
Whenever something is entered into a text field, "Enter" on keyboard should trigger a "confirm" or "save" action whiling pressing "Esc" should cancel it.
The whole UI should get a "review" regarding this to guarantee a consistent behaviour in all modules and dialogues.
Tested version: 7.3.0
Reproduction Steps
E.g. in renaming groups
go to Admin group settings
create a group "test group"
rename the group by entering "test group xyz"
hit "Enter"
=> Action is canceled and group is not renamed
Expected Outcome
"Enter" should trigger a confirmation.
Actual Outcome
Sometimes it cancels the input, which is quite surprising.
changed the title [-]"Enter" on keyboard should confirm and action, while "Esc" should cancel it[/-][+]"Enter" on keyboard should confirm an action, while "Esc" should cancel it[/+]on Sep 1, 2026
I did an analysis with my agent about all the affected places:
Enter does not confirm / save
Modals
web-pkg/src/components/CreateLinkModal.vue: password and expiry inputs (advanced mode)
web-pkg/src/components/CreateShortcutModal.vue: name input. In the URL input, Enter with suggestions open but none highlighted is swallowed (ShortcutTargetInput.vue)
web-pkg/src/components/Modals/DatePickerModal.vue: expiry date for shares and links. confirmDisabled is local only and is not emitted to ModalWrapper
web-runtime/src/components/Modals/AppTokenModal.vue: note and expiry inputs
web-app-contacts/src/components/ContactFormPanel.vue: create/edit contact (modal and mobile drawer)
web-app-files/src/components/EmbedActions/EmbedActions.vue: file name input in embed mode (Save As / export)
web-pkg/src/components/Spaces/QuotaModal.vue (minor): Enter only picks or creates the option in the select
web-app-admin-settingsAddToGroupsModal / RemoveFromGroupsModal (low): select only, Enter adds an option
Inline forms
web-app-admin-settings/src/components/Groups/SideBar/EditPanel.vue: page reload (see above)
web-app-admin-settings/src/components/Users/SideBar/EditPanel.vue: form with several fields and no submit button, so Enter does nothing
web-app-admin-settings/src/components/General/AnnouncementSection.vue: banner text, Save is click-only
web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue: Enter only picks a typeahead option and never shares. The Share button is a submit button but has no <form> around it
web-pkg/src/components/Filters/DateFilter.vue: custom date range, Apply is click-only
web-app-contacts/src/components/ContactFormPanel.vue: <oc-modal> has no @cancel listener
web-app-mail/src/components/MailWidget.vue: expanded compose modal, no @cancel listener
web-app-admin-settings Users / Groups SideBar/EditPanel.vue: no Esc to revert changes
design-system/src/components/OcSearchBar/OcSearchBar.vue: Esc does not call cancelHandler. With type="search" only the browser default applies: Chromium and Safari clear the field, Firefox does nothing. This affects all filter search bars
web-app-search/src/portals/SearchBar.vue: on mobile, Esc only clears the term and leaves the search overlay open
web-app-files/src/components/SideBar/Details/TagsSelect.vue: its own map-keydown replaces the one from OcSelect, so the OcSelect Esc handling is lost and the browser's default blur happens instead
web-app-files/src/components/SideBar/Shares/SpaceMembers.vue (minor): Esc does not close the member filter
web-app-rclone-crypt/src/views/UnlockVault.vue (low): Esc is not bound to the Cancel button
Notes for fixing
Modals that render <oc-modal> directly (contacts, mail) default to active=true. Their Esc listener therefore also fires while a dispatched modal sits on top of them (e.g. "Discard changes?"). Pass :active before wiring @cancel.
Simplest fix for custom modal components: wrap the content in <form @submit.prevent="emit('confirm')">. ModalWrapper already ignores the confirm while confirmDisabled or isLoading is set, as long as the component emits update:confirmDisabled.
Activity
[-]"Enter" on keyboard should confirm and action, while "Esc" should cancel it[/-][+]"Enter" on keyboard should confirm an action, while "Esc" should cancel it[/+]JammingBen commentedon Nov 12, 2026
I did an analysis with my agent about all the affected places:
Enter does not confirm / save
Modals
web-pkg/src/components/CreateLinkModal.vue: password and expiry inputs (advanced mode)web-pkg/src/components/CreateShortcutModal.vue: name input. In the URL input, Enter with suggestions open but none highlighted is swallowed (ShortcutTargetInput.vue)web-pkg/src/components/Modals/DatePickerModal.vue: expiry date for shares and links.confirmDisabledis local only and is not emitted toModalWrapperweb-runtime/src/components/Modals/AppTokenModal.vue: note and expiry inputsweb-runtime/src/components/EditPasswordModal.vue: password inputsweb-app-contacts/src/components/ContactFormPanel.vue: create/edit contact (modal and mobile drawer)web-app-files/src/components/EmbedActions/EmbedActions.vue: file name input in embed mode (Save As / export)web-pkg/src/components/Spaces/QuotaModal.vue(minor): Enter only picks or creates the option in the selectweb-app-admin-settingsAddToGroupsModal/RemoveFromGroupsModal(low): select only, Enter adds an optionInline forms
web-app-admin-settings/src/components/Groups/SideBar/EditPanel.vue: page reload (see above)web-app-admin-settings/src/components/Users/SideBar/EditPanel.vue: form with several fields and no submit button, so Enter does nothingweb-app-admin-settings/src/components/General/AnnouncementSection.vue: banner text, Save is click-onlyweb-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue: Enter only picks a typeahead option and never shares. The Share button is a submit button but has no<form>around itweb-pkg/src/components/Filters/DateFilter.vue: custom date range, Apply is click-onlyweb-app-ocm/src/views/IncomingInvitations.vue: invitation token inputEsc does not cancel
web-app-contacts/src/components/ContactFormPanel.vue:<oc-modal>has no@cancellistenerweb-app-mail/src/components/MailWidget.vue: expanded compose modal, no@cancellistenerweb-app-admin-settingsUsers / GroupsSideBar/EditPanel.vue: no Esc to revert changesdesign-system/src/components/OcSearchBar/OcSearchBar.vue: Esc does not callcancelHandler. Withtype="search"only the browser default applies: Chromium and Safari clear the field, Firefox does nothing. This affects all filter search barsweb-app-search/src/portals/SearchBar.vue: on mobile, Esc only clears the term and leaves the search overlay openweb-app-files/src/components/SideBar/Details/TagsSelect.vue: its ownmap-keydownreplaces the one fromOcSelect, so theOcSelectEsc handling is lost and the browser's default blur happens insteadweb-app-files/src/components/SideBar/Shares/SpaceMembers.vue(minor): Esc does not close the member filterweb-app-rclone-crypt/src/views/UnlockVault.vue(low): Esc is not bound to the Cancel buttonNotes for fixing
<oc-modal>directly (contacts, mail) default toactive=true. Their Esc listener therefore also fires while a dispatched modal sits on top of them (e.g. "Discard changes?"). Pass:activebefore wiring@cancel.<form @submit.prevent="emit('confirm')">.ModalWrapperalready ignores the confirm whileconfirmDisabledorisLoadingis set, as long as the component emitsupdate:confirmDisabled.