File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/vs/base/browser/ui/dropdown Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,10 @@ export class BaseDropdown extends ActionRunner {
56
56
57
57
for ( const event of [ EventType . MOUSE_DOWN , GestureEventType . Tap ] ) {
58
58
this . _register ( addDisposableListener ( this . _label , event , e => {
59
- if ( e instanceof MouseEvent && e . detail > 1 ) {
60
- return ; // prevent multiple clicks to open multiple context menus (https://github.com/microsoft/vscode/issues/41363)
59
+ if ( e instanceof MouseEvent && ( e . detail > 1 || e . button !== 0 ) ) {
60
+ // prevent right click trigger to allow separate context menu (https://github.com/microsoft/vscode/issues/151064)
61
+ // prevent multiple clicks to open multiple context menus (https://github.com/microsoft/vscode/issues/41363)
62
+ return ;
61
63
}
62
64
63
65
if ( this . visible ) {
You can’t perform that action at this time.
0 commit comments