Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Wrong keyboard language #54

Open
fxha opened this issue Sep 21, 2019 · 2 comments
Open

Wrong keyboard language #54

fxha opened this issue Sep 21, 2019 · 2 comments

Comments

@fxha
Copy link

fxha commented Sep 21, 2019

Description

This is an issue with the library and not Atom. getCurrentKeyboardLanguage returns the OS language on Windows (10) instead the keyboard language.

Steps to Reproduce

Let's say your OS language is Germany and using a German keyboard layout. getCurrentKeyboardLanguage() will report de-DE as keyboard language but if you switch to another keyboard layout the reported keyboard language is still de-DE.

Expected behavior:

Keyboard language should match the language of the selected keyboard layout.

Actual behavior:

German OS language + German keyboard layout:

  • Layout: 00000407
  • Language: de-DE

German OS language + France keyboard layout:

  • Layout: 0000040C (France)
  • Language: de-DE

Reproduces how often:

Always

Versions

keyboard-layout v2.0.16

@rsese
Copy link

rsese commented Oct 1, 2019

Thanks for the report! I think this is what you're saying but just to confirm, is this behavior causing any problems in Atom?

@fxha
Copy link
Author

fxha commented Oct 2, 2019

@rsese I'm not using Atom so I don't know whether Atom is affects by this issue. I noticed that there is something wrong and inconsistent between OSs.

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

No branches or pull requests

2 participants