-
Notifications
You must be signed in to change notification settings - Fork 8.9k
fix(ControlCore): prevent cursor repositioning during mouse selection #19182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Modify the cursor repositioning logic to check if a selection is in progress - Only reposition the cursor when the mouse is used for positioning, not during selection operations
| { | ||
| _repositionCursorWithMouse(terminalPosition); | ||
| // Don't reposition cursor if this is part of a selection operation | ||
| if (!selectionNeedsToBeCopied) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can merge this with the else-if above.
To me this change makes sense. What about you @zadjii-msft?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have pushed a commit to make code more clear.
DHowett
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the fix!
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
It is not traditional to check whether a selection is in progress using |
References and Relevant Issues
#19181
Detailed Description of the Pull Request / Additional comments