Change of focus from RDP session inserts a character

John Biggston 106 Reputation points
2024-07-25T15:05:02.39+00:00

This is a pretty obscure issue that started a couple of weeks ago, it is really interfering with my work, and so far I'm unable to come up with a solution. When I have an RDP session open, and am working on something text-based on the remote host, i.e. a powershell script, when I change focus from that session by clicking on something like a browser on my local desktop, a character is inserted in the RDP session, specifically, a "5". Every time I click on the RDP session, then away from it, another "5" is inserted. As you can imagine this causes havoc with the script I was editing on the RDP session. This happens when my session originates on either my Windows 10 or 11 desktops, and happens regardless of whether I use the standard mstsc client or another RDC manager. I've run a full AV scan on both hosts and nothing came up. I'm willing to format these systems and start clean if necessary, but I don't like the idea of not knowing the cause, so any thoughts on where to look or what to try next would be very much appreciated.

Thanks.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,696 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,596 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,860 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Aaron Spurlock 5 Reputation points
    2024-08-18T17:45:00.92+00:00

    So an update, I think? I noticed today that this issue ONLY happens when I click out of my RDP session and into a chrome-based web browser. Both Chrome and Edge are causing this. Firefox is not.

    And when I click in to any other program, including the desktop, taskbar or start menu, it is not happening either.

    I did some basic testing once noticing this. I tried an incognito window and it still happened. I removed all my extensions in Edge and it still happened. I tried a portable install of Chrome that has zero extensions or history and it still happened.

    I have not had any time to do more research into it, but maybe it will give those others having this issue something to start looking at. It will be interesting if this is a common thread that holds between all of us experiencing this.

    1 person found this answer helpful.

  2. Zock 10 Reputation points
    2024-09-19T13:09:29.0633333+00:00

    I made an interesting observation that if you turn off num lock, the issue doesn't occur. So the '5' key that it thinks is pressed is numpad 5.

    1 person found this answer helpful.
    0 comments No comments

  3. Philippe Levesque 5,801 Reputation points
    2024-07-25T17:07:48.18+00:00

    Hi

    I would try to connect from another computer with different hardware (kvm/mouse/keyboard), as it can be a drivers interfering with your input.

    0 comments No comments

  4. John Biggston 106 Reputation points
    2024-07-25T17:45:16.1233333+00:00

    Thats one of the confounds. This happens on both of my workstations, one is Win 11 on a new Dell with a wireless KB and mouse, the other is Win 10 on an older Dell with a USB KB and mouse. I'm willing to believe that some software I use on both machines is the common factor, but I don't use anything non-standard on them. And this is just so weird a problem.


  5. Aaron Spurlock 5 Reputation points
    2024-08-09T18:42:08.8+00:00

    I am having the exact same issue, and based on you posting in July, it sounds like it started about the same time. Every time I am in an RDP session and click out, so the RDP session loses focus, the number 5 gets typed into the RDP session. This happens on two different computers - domain joined work desktop running Windows 10 and a workgroup laptop at home running Windows 11.

    I have tried a different wireless mouse (I have not tried wired) and it did not help.

    Were you able to find anything on this?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.