diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-11-29 11:51:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 11:51:19 +0100 |
commit | df4a7dd7713cb5a7926dfa7e43fbe2481ba9f9c5 (patch) | |
tree | e894538c8a19abc5ec26f13aae6b1e36f7a496c7 /core | |
parent | ebe5cd3f1705f12f1316c137df9fab2d08956773 (diff) | |
parent | 84fd8b16fc622e3b49da958afd1caeb517cd3bc6 (diff) | |
download | nextcloud-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.js | 4 |
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() }) |