Do the selection even if there is already a selection
This commit is contained in:
@@ -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)
|
||||
if (shouldSelectWord && (!selectionManager.hasSelection || !selectionManager.isClickInSelection(ev)))
|
||||
selectionManager.selectWordAtCursor(ev);
|
||||
|
||||
// Get textarea ready to copy from the context menu
|
||||
|
||||
Reference in New Issue
Block a user