[PR #19473] Fix cursor being hidden when pressing modifier keys #31852

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

Original Pull Request: https://github.com/microsoft/terminal/pull/19473

State: closed
Merged: Yes


Summary of the Pull Request

Added a check to ensure IslandWindow::HideCursor() is only called when a non-modifier key (e.g., not Shift, Control, Alt, or Windows keys) is pressed. This prevents unintended cursor hiding when only modifier keys are used.

References and Relevant Issues

19445 - The mouse pointer has disappeared when press CTRL or SHIFT

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Built and deployed CascadiaPackage through VS, tested the deployed Terminal Dev app on local machine.

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/19473 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Added a check to ensure IslandWindow::HideCursor() is only called when a non-modifier key (e.g., not Shift, Control, Alt, or Windows keys) is pressed. This prevents unintended cursor hiding when only modifier keys are used. ## References and Relevant Issues [19445](https://github.com/microsoft/terminal/issues/19445) - The mouse pointer has disappeared when press CTRL or SHIFT ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed Built and deployed CascadiaPackage through VS, tested the deployed Terminal Dev app on local machine. ## PR Checklist - [x] Closes #19445 - [x] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:49:57 +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#31852