Pressing Alt-hotkey shows mouse cursor, it won't auto-hide anymore until mouse is moved #19415

Open
opened 2026-01-31 06:42:39 +00:00 by claunia · 6 comments
Owner

Originally created by @stasjok on GitHub (Feb 19, 2023).

Windows Terminal version

1.16.10261.0

Windows build number

19044.2604

Other Software

No response

Steps to reproduce

  1. Open terminal
  2. Start typing. Mouse cursor is hidden.
  3. Press alt-hotkey, e.g. Alt+a. Mouse cursor is visible again. Do not move mouse.
  4. Type anything. Mouse cursor won't hide anymore.

Expected Behavior

After pressing Alt+a cursor should stay hidden. And even if not, it should hide after entering any letter.

Actual Behavior

Mouse cursor is reappearing after pressing Alt+a and is not hiding after typing.

Originally created by @stasjok on GitHub (Feb 19, 2023). ### Windows Terminal version 1.16.10261.0 ### Windows build number 19044.2604 ### Other Software _No response_ ### Steps to reproduce 1. Open terminal 2. Start typing. Mouse cursor is hidden. 3. Press alt-hotkey, e.g. `Alt+a`. Mouse cursor is visible again. Do not move mouse. 4. Type anything. Mouse cursor won't hide anymore. ### Expected Behavior After pressing `Alt+a` cursor should stay hidden. And even if not, it should hide after entering any letter. ### Actual Behavior Mouse cursor is reappearing after pressing `Alt+a` and is not hiding after typing.
claunia added the Issue-BugPriority-3Product-TerminalArea-TerminalControl labels 2026-01-31 06:42:40 +00:00
Author
Owner

@carlos-zamora commented on GitHub (Feb 22, 2023):

We can't seem to repro this. Any chance you have Narrator or some other tool (Magnifier?) running? Those tend to mess with the Alt key, is why we ask.

@carlos-zamora commented on GitHub (Feb 22, 2023): We can't seem to repro this. Any chance you have Narrator or some other tool (Magnifier?) running? Those tend to mess with the Alt key, is why we ask.
Author
Owner

@elsaco commented on GitHub (Feb 23, 2023):

Could repro on Win10 and wt 1.17.1023. Notice that the pointer doesn't hide after pressing Alt+a:

https://user-images.githubusercontent.com/3933920/220799348-e9798f12-bc0a-47a8-90c6-25c29b81778d.mp4

Didn't try on Win11.

@elsaco commented on GitHub (Feb 23, 2023): Could repro on Win10 and wt 1.17.1023. Notice that the pointer doesn't hide after pressing `Alt+a`: https://user-images.githubusercontent.com/3933920/220799348-e9798f12-bc0a-47a8-90c6-25c29b81778d.mp4 Didn't try on Win11.
Author
Owner

@stasjok commented on GitHub (Feb 23, 2023):

We can't seem to repro this. Any chance you have Narrator or some other tool (Magnifier?) running? Those tend to mess with the Alt key, is why we ask.

No, I don't use any of these.

@stasjok commented on GitHub (Feb 23, 2023): > We can't seem to repro this. Any chance you have Narrator or some other tool (Magnifier?) running? Those tend to mess with the Alt key, is why we ask. No, I don't use any of these.
Author
Owner

@heysujal commented on GitHub (Mar 2, 2023):

@carlos-zamora I found this _RestorePointerCursorHandler method in TerminalPage.cpp which is being used to restore the pointer.

prob

I think it is missing a check for _shouldMouseVanish . For example _shouldMouseVanish along with _isMouseHidden is being used in _HidePointerCursorHandler in below screenshot

image

If the above screenshots are relevant then we can just add a check for _shouldMouseVanish (which should be false) like this

sol

I didn't run this project in my local system yet . I am only telling this by only observing the code. If I get approval I will run try to build and will try to see if it actually works and the make a PR.
@zadjii-msft Can you have a look ?

@heysujal commented on GitHub (Mar 2, 2023): @carlos-zamora I found this `_RestorePointerCursorHandler` method in `TerminalPage.cpp` which is being used to restore the pointer. ![prob](https://user-images.githubusercontent.com/55016909/222509085-68d174b8-ff08-46de-bf3f-b4e2fdd3d42d.png) I think it is missing a check for `_shouldMouseVanish` . For example `_shouldMouseVanish `along with `_isMouseHidden `is being used in `_HidePointerCursorHandler` in below screenshot ![image](https://user-images.githubusercontent.com/55016909/222512547-b5bc833a-43b0-448b-8f66-c2ba3b9b94d2.png) If the above screenshots are relevant then we can just add a check for` _shouldMouseVanish` (which should be false) like this ![sol](https://user-images.githubusercontent.com/55016909/222510422-77d68d32-81ff-484c-a31c-4e4cd73d4740.png) I didn't run this project in my local system yet . I am only telling this by only observing the code. If I get approval I will run try to build and will try to see if it actually works and the make a PR. @zadjii-msft Can you have a look ?
Author
Owner

@jjvliu commented on GitHub (Dec 13, 2023):

I can reproduce the issue using Windows Terminal version 1.18.3181.0 on Windows 11 build number 22621.2715.

Similarly not using any tools (Narrator or Magnifier). I also noticed that I can restore auto-hide using Alt-Tab or Win-Tab, but not Win (toggling the start menu).

@jjvliu commented on GitHub (Dec 13, 2023): I can reproduce the issue using Windows Terminal version 1.18.3181.0 on Windows 11 build number 22621.2715. Similarly not using any tools (Narrator or Magnifier). I also noticed that I can restore auto-hide using Alt-Tab or Win-Tab, but not Win (toggling the start menu).
Author
Owner

@harg commented on GitHub (Jul 18, 2024):

I also confirm this issue : Windows 10 + Terminal 1.20.11781.0

@harg commented on GitHub (Jul 18, 2024): I also confirm this issue : Windows 10 + Terminal 1.20.11781.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19415