From 5e7ba125f0b6125c449fcf45763681d0a09af353 Mon Sep 17 00:00:00 2001
From: Christopher Ng <chrng8@gmail.com>
Date: Wed, 3 Jan 2024 11:47:10 -0800
Subject: fix(files): Fix unresponsive file click to download

Signed-off-by: Christopher Ng <chrng8@gmail.com>
---
 apps/files/src/components/FileEntry.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'apps/files/src/components/FileEntry.vue')

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
 			}
-- 
cgit v1.2.3

