Skip to content

Commit

Permalink
Merge pull request #41812 from nextcloud/fix/ui/right-click-close-menu
Browse files Browse the repository at this point in the history
fix(ui): Do not close all menus on right click
  • Loading branch information
ChristophWurst authored Nov 29, 2023
2 parents ebe5cd3 + 84fd8b1 commit df4a7dd
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
Original file line number Diff line number Diff line change
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 df4a7dd

Please sign in to comment.