tabby
tabby copied to clipboard
[Web] Context menu in terminal area immediately closes
Describe the problem: On Web, when set right click to context menu, the context menu opens when mouse right button is down, but immediately closes itself when the button is released.
To Reproduce: This can be reproduced on homepage (https://tabby.sh/)
- Set "Settings > Terminal > Right click" to "Context menu"
- Right click in terminal area
Terninal tab context menu opens on mouse right button release so it stays open.
The vaadin-context-menu
used here has a contextmenu
event listener that caused this behavior.
https://github.com/vaadin/web-components/blob/03fbf19d6338bce8545c2c75ac2964a0ce140a53/packages/context-menu/src/vaadin-context-menu.js#L477-L484