mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix typo + Cleanup logic
This commit is contained in:
@@ -195,7 +195,6 @@ export interface ISelectionManager {
|
||||
selectionText: string;
|
||||
selectionStart: [number, number];
|
||||
selectionEnd: [number, number];
|
||||
hasSelection: boolean;
|
||||
|
||||
disable(): void;
|
||||
enable(): void;
|
||||
|
||||
@@ -280,6 +280,7 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
|
||||
this.refresh(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Selects all text within the terminal.
|
||||
|
||||
@@ -108,7 +108,7 @@ export function moveTextAreaUnderMouseCursor(ev: MouseEvent, textarea: HTMLTextA
|
||||
export function rightClickHandler(ev: MouseEvent, textarea: HTMLTextAreaElement, selectionManager: ISelectionManager, shouldSelectWord: boolean): void {
|
||||
moveTextAreaUnderMouseCursor(ev, textarea);
|
||||
|
||||
if (shouldSelectWord && (!selectionManager.hasSelection || !selectionManager.isClickInSelection(ev)))
|
||||
if (shouldSelectWord && !selectionManager.isClickInSelection(ev))
|
||||
selectionManager.selectWordAtCursor(ev);
|
||||
|
||||
// Get textarea ready to copy from the context menu
|
||||
|
||||
Reference in New Issue
Block a user