Skip to content

fire onSelectionChange on empty selection#3215

Merged
Tyriar merged 2 commits intoxtermjs:masterfrom
marvinthepa:3193_onSelectionChange_on_clear
Jan 15, 2021
Merged

fire onSelectionChange on empty selection#3215
Tyriar merged 2 commits intoxtermjs:masterfrom
marvinthepa:3193_onSelectionChange_on_clear

Conversation

@marvinthepa
Copy link
Copy Markdown
Contributor

Fire the onSelectionChange event when a selection is cleared by
single-clicking somewhere inside the terminal area.

fixes #3193.

This also slightly changes the behaviour when re-selecting the same area
in the terminal. Before, this fired onSelectionChange, but it does not
anymore, even when changing the direction of the selection.

marvinthepa and others added 2 commits January 14, 2021 23:08
Fire the onSelectionChange event when a selection is cleared by
single-clicking somewhere inside the terminal area.

fixes xtermjs#3193.

This also slightly changes the behaviour when re-selecting the same area
in the terminal. Before, this fired onSelectionChange, but it does not
anymore, even when changing the direction of the selection.
Co-authored-by: Megan Rogge <merogge@microsoft.com>
@Tyriar Tyriar added this to the 4.10.0 milestone Jan 15, 2021
Copy link
Copy Markdown
Member

@Tyriar Tyriar left a 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 and for finding the other bug 🙂

@Tyriar Tyriar enabled auto-merge January 15, 2021 17:40
@Tyriar Tyriar merged commit 8a4772c into xtermjs:master Jan 15, 2021
@marvinthepa marvinthepa deleted the 3193_onSelectionChange_on_clear branch January 20, 2021 23:37
Comment thread src/browser/services/SelectionService.ts
Comment thread src/browser/services/SelectionService.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

onSelectionChange() is not being invoked when the selection is cleared.

2 participants