diff --git a/changelog/unreleased/enhancement-make-keybindings-global b/changelog/unreleased/enhancement-make-keybindings-global index 3c1db22935c..e9663a4a26a 100644 --- a/changelog/unreleased/enhancement-make-keybindings-global +++ b/changelog/unreleased/enhancement-make-keybindings-global @@ -3,3 +3,4 @@ Enhancement: Make keybindings global We've made keybindings global and introduced a data-attribute to mark elements that need custom keybindings https://github.com/owncloud/web/pull/7569 +https://github.com/owncloud/web/pull/7648 \ No newline at end of file diff --git a/packages/web-app-files/src/components/FilesList/KeyboardActions.vue b/packages/web-app-files/src/components/FilesList/KeyboardActions.vue index 4dbcba64c16..55dab36a447 100644 --- a/packages/web-app-files/src/components/FilesList/KeyboardActions.vue +++ b/packages/web-app-files/src/components/FilesList/KeyboardActions.vue @@ -86,6 +86,8 @@ export default defineComponent({ }), areCustomKeyBindingsEnabled() { + const activeElementTag = document.activeElement.tagName + if (['textarea', 'input', 'select'].includes(activeElementTag.toLowerCase())) return true const closestSelectionEl = window.getSelection().focusNode as HTMLElement if (!closestSelectionEl) return false let customKeyBindings