From 3479614c732305b4174bf438e1ac3022aa3b3aa4 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 28 Jul 2017 14:06:55 -0700 Subject: [PATCH] Disable selection override on Windows/Linux --- src/SelectionManager.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SelectionManager.ts b/src/SelectionManager.ts index 55e95735..f6fb44da 100644 --- a/src/SelectionManager.ts +++ b/src/SelectionManager.ts @@ -317,7 +317,8 @@ export class SelectionManager extends EventEmitter { * @param event The mousedown event. */ private _onMouseDown(event: MouseEvent) { - // If we have selection, we want the context menu on right click + // If we have selection, we want the context menu on right click even if the + // terminal is in mouse mode. if (event.button === 2 && this.hasSelection) { event.stopPropagation(); return; @@ -330,7 +331,7 @@ export class SelectionManager extends EventEmitter { // Allow selection when using a specific modifier key, even when disabled if (!this._enabled) { - const shouldForceSelection = Browser.isMac ? event.altKey : event.shiftKey; + const shouldForceSelection = Browser.isMac && event.altKey; if (!shouldForceSelection) { return;