summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-11-29 11:51:19 +0100
committerGitHub <noreply@github.com>2023-11-29 11:51:19 +0100
commitdf4a7dd7713cb5a7926dfa7e43fbe2481ba9f9c5 (patch)
treee894538c8a19abc5ec26f13aae6b1e36f7a496c7 /core
parentebe5cd3f1705f12f1316c137df9fab2d08956773 (diff)
parent84fd8b16fc622e3b49da958afd1caeb517cd3bc6 (diff)
downloadnextcloud-server-df4a7dd7713cb5a7926dfa7e43fbe2481ba9f9c5.tar.gz
nextcloud-server-df4a7dd7713cb5a7926dfa7e43fbe2481ba9f9c5.zip
Merge pull request #41812 from nextcloud/fix/ui/right-click-close-menu
fix(ui): Do not close all menus on right click
Diffstat (limited to 'core')
-rw-r--r--core/src/init.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/init.js b/core/src/init.js
index f366dba5d1e..8139b3919ab 100644
--- a/core/src/init.js
+++ b/core/src/init.js
@@ -117,6 +117,10 @@ export const initCore = () => {
// don't close when clicking on the menu directly or a menu toggle
return false
}
+ if (event.which === 3) {
+ // don't close when right-clicking
+ return false
+ }
OC.hideMenus()
})