]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - src/SelectionManager.ts
Disable selection override on Windows/Linux
[mirror_xterm.js.git] / src / SelectionManager.ts
index 55e95735c142709276962b41b0ff080bd0763fc7..f6fb44da58cf51bc033b7fb17fc653c83aa24157 100644 (file)
@@ -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;