aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-06-14 10:16:26 +0200
committerGitHub <noreply@github.com>2024-06-14 10:16:26 +0200
commit7a97e22db2d1cb2f2b1a3cd6a4d191edb9fc5065 (patch)
treedc21bfa79a96b89b20281f034b85e94e3afe4a60 /apps/files
parent018a0ae66f264182c0ae2c9095ea0c0cb64cd372 (diff)
parent938eabd6199789cea7c20d297b9d84349403439a (diff)
downloadnextcloud-server-7a97e22db2d1cb2f2b1a3cd6a4d191edb9fc5065.tar.gz
nextcloud-server-7a97e22db2d1cb2f2b1a3cd6a4d191edb9fc5065.zip
Merge pull request #45861 from nextcloud/artonge/fix/right-click
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/components/FileEntryMixin.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts
index c56c10de75a..e6accb7861a 100644
--- a/apps/files/src/components/FileEntryMixin.ts
+++ b/apps/files/src/components/FileEntryMixin.ts
@@ -208,6 +208,11 @@ export default defineComponent({
},
execDefaultAction(event) {
+ // Ignore right click.
+ if (event.button > 1) {
+ return
+ }
+
// if ctrl+click or middle mouse button, open in new tab
if (event.ctrlKey || event.metaKey || event.button === 1) {
event.preventDefault()