mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-04 10:56:08 +00:00
Disable selection override on Windows/Linux
This commit is contained in:
parent
6a3b39b428
commit
3479614c73
@ -317,7 +317,8 @@ export class SelectionManager extends EventEmitter {
|
|||||||
* @param event The mousedown event.
|
* @param event The mousedown event.
|
||||||
*/
|
*/
|
||||||
private _onMouseDown(event: MouseEvent) {
|
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) {
|
if (event.button === 2 && this.hasSelection) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
return;
|
return;
|
||||||
@ -330,7 +331,7 @@ export class SelectionManager extends EventEmitter {
|
|||||||
|
|
||||||
// Allow selection when using a specific modifier key, even when disabled
|
// Allow selection when using a specific modifier key, even when disabled
|
||||||
if (!this._enabled) {
|
if (!this._enabled) {
|
||||||
const shouldForceSelection = Browser.isMac ? event.altKey : event.shiftKey;
|
const shouldForceSelection = Browser.isMac && event.altKey;
|
||||||
|
|
||||||
if (!shouldForceSelection) {
|
if (!shouldForceSelection) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user