diff --git a/resources/js/components/assets/Folder/Folder.vue b/resources/js/components/assets/Folder/Folder.vue index 4d5390e1b2..a7eb4aeb22 100644 --- a/resources/js/components/assets/Folder/Folder.vue +++ b/resources/js/components/assets/Folder/Folder.vue @@ -75,13 +75,8 @@ export default { }, created() { - // Allow key commands with a focused input - this.$keys.stop(e => { - return ! ['enter', 'escape'].includes(e.code.toLowerCase()) - }) - - this.$keys.bind('enter', this.submit) - this.$keys.bind('esc', this.cancel) + this.$keys.bindGlobal('enter', this.submit) + this.$keys.bindGlobal('esc', this.cancel) }, } diff --git a/resources/js/components/structures/PageEditor.vue b/resources/js/components/structures/PageEditor.vue index 35bb79335f..e00c013739 100644 --- a/resources/js/components/structures/PageEditor.vue +++ b/resources/js/components/structures/PageEditor.vue @@ -71,12 +71,7 @@ export default { }, created() { - // Allow key commands with a focused input - this.$keys.stop(e => { - return ! ['enter'].includes(e.code.toLowerCase()) - }) - - this.$keys.bind('enter', this.submit) + this.$keys.bindGlobal('enter', this.submit) }, }