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 <[email protected]>
  • Loading branch information
ChristophWurst committed Nov 28, 2023
1 parent 52eddf8 commit 7b66219
Showing 1 changed file with 4 additions and 0 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

0 comments on commit 7b66219

Please sign in to comment.