diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index 63daf33ef9a73..d3f78c1dc56a2 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -277,21 +277,21 @@ export default defineComponent({ }, created() { - useHotKey('Enter', this.triggerDefaultAction, { - stop: true, - prevent: true, - }) + useHotKey('Enter', this.triggerDefaultAction) }, methods: { formatFileSize, - triggerDefaultAction() { + triggerDefaultAction(event?: KeyboardEvent) { // Don't react to the event if the file row is not active if (!this.isActive) { return } + event?.preventDefault() + event?.stopPropagation() + this.defaultFileAction?.exec({ nodes: [this.source], folder: this.activeFolder!,