Description
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