aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/components/HeaderMenu.vue
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/components/HeaderMenu.vue')
-rw-r--r--core/src/components/HeaderMenu.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/components/HeaderMenu.vue b/core/src/components/HeaderMenu.vue
index 172ea7268d8..a2c19194b45 100644
--- a/core/src/components/HeaderMenu.vue
+++ b/core/src/components/HeaderMenu.vue
@@ -81,6 +81,7 @@ export default {
handler: this.closeMenu,
middleware: this.clickOutsideMiddleware,
},
+ shortcutsDisabled: OCP.Accessibility.disableKeyboardShortcuts(),
}
},
@@ -144,6 +145,10 @@ export default {
},
onKeyDown(event) {
+ if (this.shortcutsDisabled) {
+ return
+ }
+
// If opened and escape pressed, close
if (event.key === 'Escape' && this.opened) {
event.preventDefault()