Skip to content

AltGr is wrongly mapped on win32 to ControlLeft instead of AltRight #13895

@Smile4ever

Description

@Smile4ever
  • Electron Version: 2.0.3 or 2.0.4 or 2.0.5
  • Operating System (Platform and Version): win32
  • Last known working Electron version: unknown

Expected Behavior
I expected AltGr to map to AltRight in the keydown (and keyup) event handler on win32, just like it does on Linux.

Actual behavior
AltGr maps to ControlLeft instead, which is weird.

To Reproduce
AltGr is wrongly mapped to ControlLeft on Windows:

afbeelding

I was able to verify that the behaviour on Linux doesn't show. The event data is as I would expect it on Linux:
virtuallinux

I'm unsure for macOS, if someone could check what happens there that would be great.

This bug can be seen in Caprine. The downstream bug is here: sindresorhus/caprine#539

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions