libnut icon indicating copy to clipboard operation
libnut copied to clipboard

Divide maps to subtract on German keyboard layout (Windows)

Open rgutt opened this issue 2 years ago • 1 comments

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. https://github.com/FreeRDP/FreeRDP/issues/446

rgutt avatar Nov 03 '22 14:11 rgutt

Hi @rgutt 👋

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

I’ll have a look

s1hofmann avatar Nov 03 '22 17:11 s1hofmann