Selection not deselected when you press 'Esc' #792

Open
opened 2026-01-30 22:04:16 +00:00 by claunia · 0 comments
Owner

Originally created by @jmorrill on GitHub (May 7, 2019).

Originally assigned to: @carlos-zamora on GitHub.

When there is a selection of one or more character places, pressing "Esc" should clear the selection as it does in vanilla cmd.exe.

The selection does clear if you press "Esc" and resize the window, triggering rerender.

Adding:

if(!handled && vkey == 27) { this->_renderer->TriggerRedrawAll(); }
to here:
b726a3d05d/src/cascadia/TerminalControl/TermControl.cpp (L512) fixed it, but that is just a thoughtless hack to remove the small annoyance for now.

Originally created by @jmorrill on GitHub (May 7, 2019). Originally assigned to: @carlos-zamora on GitHub. When there is a selection of one or more character places, pressing "Esc" should clear the selection as it does in vanilla cmd.exe. The selection does clear if you press "Esc" and resize the window, triggering rerender. Adding: `if(!handled && vkey == 27) { this->_renderer->TriggerRedrawAll(); } ` to here: https://github.com/microsoft/Terminal/blob/b726a3d05d35928becc8313f6ac5536c9f503645/src/cascadia/TerminalControl/TermControl.cpp#L512 fixed it, but that is just a thoughtless hack to remove the small annoyance for now.
claunia added the Issue-Bug label 2026-01-30 22:04:16 +00:00
Sign in to join this conversation.
No Label Issue-Bug
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#792