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

Divide maps to subtract on German keyboard layout (Windows) #142

Open
rgutt opened this issue Nov 3, 2022 · 1 comment
Open

Divide maps to subtract on German keyboard layout (Windows) #142

rgutt opened this issue Nov 3, 2022 · 1 comment

Comments

@rgutt
Copy link

rgutt commented Nov 3, 2022

Version
2.3.0

Short overview
When calling pressKey(Key.Divide) Numpad Subtract is pressed on Windows using a German keyboard layout.

Detailed error description
I have a small program mapping the input of an external hardware device to keyboard actions. I started to map the NumPad on a Windows PC with a German keyboard layout. All keys except for divide are correctly mapped. When calling keyboard.pressKey(Key.Divide"); the key subtract is pressed instead.

Steps to reproduce error
Set keyboard to German Layout.

Running following code:
import { keyboard, Key } from "@nut-tree/nut-js"; keyboard.pressKey(Key.Divide);
will call '-'.

Additional content

I couldn't figure out what cause the problem, but I found another Issue on a different repository describing the same problem.
FreeRDP/FreeRDP#446

@s1hofmann
Copy link
Member

s1hofmann commented Nov 3, 2022

Hi @rgutt 👋

EDIT: I’m unable to read thoroughly 🤦‍♂️

I’ll have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants