Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt + NumPad codes are not sent to the remote OS (Windows) #6697

Open
u17194907425 opened this issue Dec 17, 2023 · 7 comments
Open

Alt + NumPad codes are not sent to the remote OS (Windows) #6697

u17194907425 opened this issue Dec 17, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@u17194907425
Copy link

Bug Description

Alt Codes seems not to be working https://en.wikipedia.org/wiki/Alt_code

How to Reproduce

  • Connect from Windows 10 to a remote Windows 10
  • open Notepad
  • start editing text
  • Press and hold Alt, press Num4, press Num1

Expected Behavior

) symbol will appear in the remote system

Operating system(s) on local side and remote side

Windows 10 -> Windows 10

RustDesk Version(s) on local side and remote side

1.2.3 -> 1.2.3

Screenshots

Not applicable

Additional Context

No response

@u17194907425 u17194907425 added the bug Something isn't working label Dec 17, 2023
@rustdesk
Copy link
Owner

@fufesou

@fufesou
Copy link
Collaborator

fufesou commented Dec 18, 2023

Thanks for your feedback.

Please try the "Translate mode".

1702878890669

Or you can use the "Map mode", but you may need to switch the "NumLock" led state first.

@u17194907425
Copy link
Author

Hi @fufesou thanks for the quick reaction!
I have just tried the "Translate mode" and here is what I have:

  • The expected behavior works if the "NumLock" is off meaning if the num pad is in the mode of arrows and other navigation buttons
  • The expected behavior does not work if "NumLock" is on meaning if the num pad is in the mode of numbers.

On the other hand on the local Windows 10 (not the remote one) the behavior is not affected by the "NumLock" state. No matter if it is on or off the Alt Codes are working.

@fufesou
Copy link
Collaborator

fufesou commented Dec 18, 2023

Sorry, I don't quite understand what you mean.

Is the above result what you want? Still have any issues?

The "Translate mode" just send letters to the controlled side.
The input is affected by the control side.
The "NumLock" state on the control side will affect the input. And on controlled side, the state will not affect.

@u17194907425
Copy link
Author

Is the above result what you want? Still have any issues?

Yes, the issue does still exist. The expectation is that the Alt Codes are working independently from the "NumLock" state. At least this is how it works on the local Win10. On the local Win10 if I press and hold Alt, press Num4, press Num1 then ) symbol will appear no matter which state "NumLock" is (either on or off)

On the remote Win10 however it is different. The behavior is exactly as expected if "NumLock" is off. But if "NumLock" is on then on the remote Win10 the Alt Code stops registering. Meaning if:

  • "NumLock" is off
  • I can confirm that by just pressing Num4 and see the cursor moves one step to the left
  • Press and hold Alt, press Num4, press Num1
  • no ) symbol appears (but expected)

@fufesou
Copy link
Collaborator

fufesou commented Dec 18, 2023

Thanks.

I've read the code. The two modes has the same effect in Alt Codes case.
The numpad keystrokes are sent to the controlled side for both "Map mode" and "Translate mode". So they behave the same.

We've added some workaround(extra keystrokes on the controlled side) for the led state. The Alt Codes are not available then.

But it is somewhat difficult to satisfy all cases.

We'll find a better way to simulate these cases in the future.

@u17194907425
Copy link
Author

Sure thing. This is not the easiest thing to align for all the cases. The case of this issue seems quite a niche one.

@rustdesk rustdesk added unreproducible Can not be reproduced and removed unreproducible Can not be reproduced labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants