Skip to content

Commit

Permalink
fix(ui): Do not close all menus on right click
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
ChristophWurst authored and nextcloud-command committed Nov 28, 2023
1 parent 52eddf8 commit 84fd8b1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions core/src/init.js
Expand Up @@ -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()
})
Expand Down
4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-main.js.map

Large diffs are not rendered by default.

0 comments on commit 84fd8b1

Please sign in to comment.