aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/components')
-rw-r--r--apps/files/src/components/FileEntry.vue2
-rw-r--r--apps/files/src/components/FileEntryGrid.vue2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index a6ca70d2800..5e5476b08f7 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -416,8 +416,8 @@ export default defineComponent({
},
execDefaultAction(event) {
- event.preventDefault()
if (event.ctrlKey || event.metaKey) {
+ event.preventDefault()
window.open(generateUrl('/f/{fileId}', { fileId: this.fileid }))
return false
}
diff --git a/apps/files/src/components/FileEntryGrid.vue b/apps/files/src/components/FileEntryGrid.vue
index 682c5fbbc23..a43f9c98b75 100644
--- a/apps/files/src/components/FileEntryGrid.vue
+++ b/apps/files/src/components/FileEntryGrid.vue
@@ -283,8 +283,8 @@ export default Vue.extend({
},
execDefaultAction(event) {
- event.preventDefault()
if (event.ctrlKey || event.metaKey) {
+ event.preventDefault()
window.open(generateUrl('/f/{fileId}', { fileId: this.fileid }))
return false
}