Skip to content

Commit

Permalink
Merge pull request #45862 from nextcloud/backport/45861/stable29
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Jun 14, 2024
2 parents af86bb9 + f8446f7 commit b5b279e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions apps/files/src/components/FileEntryMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit b5b279e

Please sign in to comment.