Merge pull request #45861 from nextcloud/artonge/fix/right-click

pull/45945/head
John Molakvoæ 2024-06-14 10:16:26 +07:00 committed by GitHub
commit 7a97e22db2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 4 deletions

@ -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()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long