File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/vs/workbench/browser/parts/editor Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -404,8 +404,8 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
404
404
const handleTitleClickOrTouch = ( e : MouseEvent | GestureEvent ) : void => {
405
405
let target : HTMLElement ;
406
406
if ( e instanceof MouseEvent ) {
407
- if ( e . button !== 0 || ( isMacintosh && e . ctrlKey ) ) {
408
- return undefined ; // only for left mouse click (ctrl+click on macos is right-click)
407
+ if ( e . button !== 0 /* middle/right mouse button */ || ( isMacintosh && e . ctrlKey /* macOS context menu */ ) ) {
408
+ return undefined ;
409
409
}
410
410
411
411
target = e . target as HTMLElement ;
Original file line number Diff line number Diff line change @@ -691,12 +691,12 @@ export class TabsTitleControl extends TitleControl {
691
691
const handleClickOrTouch = ( e : MouseEvent | GestureEvent , preserveFocus : boolean ) : void => {
692
692
tab . blur ( ) ; // prevent flicker of focus outline on tab until editor got focus
693
693
694
- if ( e instanceof MouseEvent && e . button !== 0 ) {
694
+ if ( e instanceof MouseEvent && ( e . button !== 0 /* middle/right mouse button */ || ( isMacintosh && e . ctrlKey /* macOS context menu */ ) ) ) {
695
695
if ( e . button === 1 ) {
696
696
e . preventDefault ( ) ; // required to prevent auto-scrolling (https://github.com/microsoft/vscode/issues/16690)
697
697
}
698
698
699
- return undefined ; // only for left mouse click
699
+ return undefined ;
700
700
}
701
701
702
702
if ( this . originatesFromTabActionBar ( e ) ) {
You can’t perform that action at this time.
0 commit comments