Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(files): Ignore right click for default action
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Jun 13, 2024
commit f0a46e6cdfeaab994a4c32a4d4cdc9cd5d26d7a2
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.