[PR #9455] [MERGED] Fix selection on multi-click with no shift #27588

Open
opened 2026-01-31 09:22:51 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9455
Author: @Don-Vito
Created: 3/11/2021
Status: Merged
Merged: 3/12/2021
Merged by: @undefined

Base: mainHead: 9453-fix-selection-no-shift


📝 Commits (2)

  • b4be051 Fix selection on multi-click with no shift
  • 0b1da04 Fix typo in a comment

📊 Changes

1 file changed (+12 additions, -13 deletions)

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+12 -13)

📄 Description

When working on #9403 I completely forgot that
double-click and triple-click should work even without shift.
Fixed it by allowing multi-selection even if not shift is pressed.

Closes #9453

Validation Steps Performed

  • single click = no selection
  • single click and drag = selection starting from first point
  • single click in unfocused pane and drag = focus pane, selection starting from first point
  • double-click = selects a whole word
  • triple-click = selects a whole line
  • double-click and drag = selects a whole word, drag selects whole words
  • triple-click and drag = selects a whole line, drag selects whole lines
  • Shift single-click = defines start point
  • second Shift single-click = defines end point
  • Shift double-click = selects entire word
  • Shift triple-click = selects entire line
  • Shift double-click and drag = selects entire word, drag selects whole words
  • Mouse mode: Shift single-click = defines start point
  • Mouse mode: second Shift single-click = defines end point
  • Mouse mode: Shift double-click = selects entire word
  • Mouse mode: Shift triple-click = selects entire line
  • Mouse mode: Shift double-click and drag = selects entire word, drag selects whole words

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/9455 **Author:** [@Don-Vito](https://github.com/Don-Vito) **Created:** 3/11/2021 **Status:** ✅ Merged **Merged:** 3/12/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `9453-fix-selection-no-shift` --- ### 📝 Commits (2) - [`b4be051`](https://github.com/microsoft/terminal/commit/b4be05134515cce90d919ab0b13717200a20cf26) Fix selection on multi-click with no shift - [`0b1da04`](https://github.com/microsoft/terminal/commit/0b1da04e353e42a0eb53763b40becc44da2dd781) Fix typo in a comment ### 📊 Changes **1 file changed** (+12 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+12 -13) </details> ### 📄 Description When working on #9403 I completely forgot that double-click and triple-click should work even without shift. Fixed it by allowing multi-selection even if not shift is pressed. Closes #9453 ## Validation Steps Performed * [x] single click = no selection * [x] single click and drag = selection starting from first point * [x] single click in unfocused pane and drag = focus pane, selection starting from first point * [x] double-click = selects a whole word * [x] triple-click = selects a whole line * [x] double-click and drag = selects a whole word, drag selects whole words * [x] triple-click and drag = selects a whole line, drag selects whole lines * [x] Shift single-click = defines start point * [x] second Shift single-click = defines end point * [x] Shift double-click = selects entire word * [x] Shift triple-click = selects entire line * [x] Shift double-click and drag = selects entire word, drag selects whole words * [x] Mouse mode: Shift single-click = defines start point * [x] Mouse mode: second Shift single-click = defines end point * [x] Mouse mode: Shift double-click = selects entire word * [x] Mouse mode: Shift triple-click = selects entire line * [x] Mouse mode: Shift double-click and drag = selects entire word, drag selects whole words --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:22:51 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27588