fix(ui): Do not close all menus on right click

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
Christoph Wurst 2023-11-28 19:38:36 +01:00 committed by nextcloud-command
parent 52eddf8675
commit 84fd8b16fc
5 changed files with 10 additions and 6 deletions

View file

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

4
dist/core-common.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/core-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long