Skip to content

Improve UX for selection during VTMM#19973

Merged
DHowett merged 2 commits into
mainfrom
dev/cazamor/selection/improve-vtmm
Mar 17, 2026
Merged

Improve UX for selection during VTMM#19973
DHowett merged 2 commits into
mainfrom
dev/cazamor/selection/improve-vtmm

Conversation

@carlos-zamora

Copy link
Copy Markdown
Member

Summary of the Pull Request

Selection in VT mouse mode has been feeling a little weird. I've made a few changes in this space to improve the overall experience when in vt mouse mode:

  • don't round selection positions: this means that you now highlight the cell you're on if you're going right, and the adjacent cell if you're going left
  • fix drag-left excluding the current cell
  • Shift modifer conficts between "disable mouse input" and "extend selection" #9608: shift+click now clears any existing selection instead of extending it. This feels more intuitive since Shift already works as the override modifier

References and Relevant Issues

Somewhat related to #18106

Validation Steps Performed

✅ alt selections feel consistent
✅ selecting in VTMM feels accurate (selects the cell we started on)
✅ creating new selections (aka clearing old selection) in VTMM feels intuitive (forwards and backwards)

Closes #9608

@carlos-zamora carlos-zamora requested a review from DHowett March 13, 2026 21:56
@github-project-automation github-project-automation Bot moved this to To Cherry Pick in 1.25 Servicing Pipeline Mar 13, 2026
@github-project-automation github-project-automation Bot moved this to To Cherry Pick in 1.24 Servicing Pipeline Mar 13, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added Issue-Task It's a feature request, but it doesn't really need a major design. Area-Input Related to input processing (key presses, mouse, etc.) Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Product-Terminal The new Windows Terminal. labels Mar 13, 2026
@carlos-zamora carlos-zamora moved this from To Cherry Pick to To Consider in 1.24 Servicing Pipeline Mar 13, 2026
@carlos-zamora carlos-zamora moved this from To Cherry Pick to To Consider in 1.25 Servicing Pipeline Mar 13, 2026
Comment thread src/cascadia/TerminalControl/ControlInteractivity.cpp Outdated
@DHowett DHowett merged commit 2e33056 into main Mar 17, 2026
18 of 20 checks passed
@DHowett DHowett deleted the dev/cazamor/selection/improve-vtmm branch March 17, 2026 21:46
@DHowett DHowett moved this from To Consider to To Cherry Pick in 1.25 Servicing Pipeline Apr 3, 2026
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.25 Servicing Pipeline Apr 3, 2026
DHowett pushed a commit that referenced this pull request Apr 3, 2026
Selection in VT mouse mode has been feeling a little weird. I've made a
few changes in this space to improve the overall experience when in vt
mouse mode:
- don't round selection positions: this means that you now highlight the
cell you're on if you're going right, and the adjacent cell if you're
going left
- fix drag-left excluding the current cell
- #9608: shift+click now clears any existing selection instead of
extending it. This feels more intuitive since Shift already works as the
override modifier

Somewhat related to #18106

## Validation
✅ alt selections feel consistent
✅ selecting in VTMM feels accurate (selects the cell we started on)
✅ creating new selections (aka clearing old selection) in VTMM feels
intuitive (forwards and backwards)

Closes #9608

(cherry picked from commit 2e33056)
Service-Card-Id: PVTI_lADOAF3p4s4BQX0-zgna3V8
Service-Version: 1.25
@DHowett DHowett moved this from To Consider to To Cherry Pick in 1.24 Servicing Pipeline Apr 30, 2026
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.24 Servicing Pipeline Apr 30, 2026
DHowett pushed a commit that referenced this pull request Apr 30, 2026
Selection in VT mouse mode has been feeling a little weird. I've made a
few changes in this space to improve the overall experience when in vt
mouse mode:
- don't round selection positions: this means that you now highlight the
cell you're on if you're going right, and the adjacent cell if you're
going left
- fix drag-left excluding the current cell
- #9608: shift+click now clears any existing selection instead of
extending it. This feels more intuitive since Shift already works as the
override modifier

Somewhat related to #18106

## Validation
✅ alt selections feel consistent
✅ selecting in VTMM feels accurate (selects the cell we started on)
✅ creating new selections (aka clearing old selection) in VTMM feels
intuitive (forwards and backwards)

Closes #9608

(cherry picked from commit 2e33056)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzgna3WE
Service-Version: 1.24
@DHowett DHowett moved this from Cherry Picked to Shipped in 1.25 Servicing Pipeline Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Input Related to input processing (key presses, mouse, etc.) Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.

Projects

Status: Cherry Picked

Development

Successfully merging this pull request may close these issues.

Shift modifer conficts between "disable mouse input" and "extend selection"

2 participants