Skip to content

Commit

Permalink
fix(files): Ignore right click for default action
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Jun 13, 2024
1 parent b5275f7 commit 96c9477
Showing 1 changed file with 5 additions and 0 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 @@ -208,6 +208,11 @@ export default defineComponent({
},

execDefaultAction(event) {
// Ignore right click.
if (event.button > 1) {
retrurn
}

// if ctrl+click or middle mouse button, open in new tab
if (event.ctrlKey || event.metaKey || event.button === 1) {
event.preventDefault()
Expand Down

0 comments on commit 96c9477

Please sign in to comment.