aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/components/FileEntry.vue')
-rw-r--r--apps/files/src/components/FileEntry.vue11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index b89c5dcb3f4..3ed8b0a5d4b 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -105,6 +105,7 @@ import { showError } from '@nextcloud/dialogs'
import { translate as t } from '@nextcloud/l10n'
import { vOnClickOutside } from '@vueuse/components'
import moment from '@nextcloud/moment'
+import { generateUrl } from '@nextcloud/router'
import Vue, { defineComponent } from 'vue'
import { action as sidebarAction } from '../actions/sidebarAction.ts'
@@ -398,8 +399,14 @@ export default defineComponent({
event.stopPropagation()
},
- execDefaultAction(...args) {
- this.$refs.actions.execDefaultAction(...args)
+ execDefaultAction(event) {
+ event.preventDefault()
+ if (event.ctrlKey || event.metaKey) {
+ window.open(generateUrl('/f/{fileId}', { fileId: this.fileid }))
+ return false
+ }
+
+ this.$refs.actions.execDefaultAction(event)
},
openDetailsIfAvailable(event) {