mirror of
https://github.com/nextcloud/spreed.git
synced 2025-07-23 18:55:33 +00:00
Merge pull request #15558 from nextcloud/fix/noid/esc-hotkey
fix: disable Esc hotkey for guests
This commit is contained in:
@ -209,7 +209,9 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
window.addEventListener('beforeunload', this.preventUnload)
|
window.addEventListener('beforeunload', this.preventUnload)
|
||||||
useHotKey('f', this.handleAppSearch, { ctrl: true, stop: true, prevent: true })
|
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() {
|
beforeUnmount() {
|
||||||
|
Reference in New Issue
Block a user