Skip to content

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

Open
@rgutt

Description

@rgutt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions