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 {
404404 const handleTitleClickOrTouch = ( e : MouseEvent | GestureEvent ) : void => {
405405 let target : HTMLElement ;
406406 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 ;
409409 }
410410
411411 target = e . target as HTMLElement ;
Original file line number Diff line number Diff line change @@ -691,12 +691,12 @@ export class TabsTitleControl extends TitleControl {
691691 const handleClickOrTouch = ( e : MouseEvent | GestureEvent , preserveFocus : boolean ) : void => {
692692 tab . blur ( ) ; // prevent flicker of focus outline on tab until editor got focus
693693
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 */ ) ) ) {
695695 if ( e . button === 1 ) {
696696 e . preventDefault ( ) ; // required to prevent auto-scrolling (https://github.com/microsoft/vscode/issues/16690)
697697 }
698698
699- return undefined ; // only for left mouse click
699+ return undefined ;
700700 }
701701
702702 if ( this . originatesFromTabActionBar ( e ) ) {
You can’t perform that action at this time.
0 commit comments