Adds a toggle to disable column selections on mac

This commit is contained in:
Viraj Sinha
2018-06-28 15:56:25 -07:00
parent 3202ddc96d
commit 2669576b6c
3 changed files with 16 additions and 2 deletions
+5 -1
View File
@@ -376,7 +376,11 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
* @param event The mouse event.
*/
public shouldForceSelection(event: MouseEvent): boolean {
return Browser.isMac ? event.altKey : event.shiftKey;
if (Browser.isMac) {
return event.altKey && this._terminal.options.macOptionClickForcesSelection;
}
return event.shiftKey;
}
/**
+1
View File
@@ -98,6 +98,7 @@ const DEFAULT_OPTIONS: ITerminalOptions = {
screenReaderMode: false,
debug: false,
macOptionIsMeta: false,
macOptionClickForcesSelection: false,
cancelEvents: false,
disableStdin: false,
useFlowControl: false,