Merge pull request #15558 from nextcloud/fix/noid/esc-hotkey

fix: disable Esc hotkey for guests
This commit is contained in:
Maksim Sukharev
2025-07-19 16:25:53 +02:00
committed by GitHub

View File

@ -209,7 +209,9 @@ export default {
created() {
window.addEventListener('beforeunload', this.preventUnload)
useHotKey('f', this.handleAppSearch, { ctrl: true, stop: true, prevent: true })
useHotKey('Escape', this.openRoot, { stop: true, prevent: true })
if (getCurrentUser()) {
useHotKey('Escape', this.openRoot, { stop: true, prevent: true })
}
},
beforeUnmount() {