diff options
author | Louis Chemineau <louis@chmn.me> | 2024-06-13 15:39:59 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-06-13 16:26:22 +0200 |
commit | f0a46e6cdfeaab994a4c32a4d4cdc9cd5d26d7a2 (patch) | |
tree | 7aba49091e0ea351be2b156515e152fc5484ab5b /apps/files | |
parent | c23002bd76307f679bd17bcef2315576d8d95a98 (diff) | |
download | nextcloud-server-f0a46e6cdfeaab994a4c32a4d4cdc9cd5d26d7a2.tar.gz nextcloud-server-f0a46e6cdfeaab994a4c32a4d4cdc9cd5d26d7a2.zip |
fix(files): Ignore right click for default action
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/src/components/FileEntryMixin.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index 03fefe80f7b..6ce90c0e28c 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -225,6 +225,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() |