#Some Keys get encoded wrong. For example X and Y are switched. WINDOWS (QWERTZ) | Nice-Nano v2.

1 messages · Page 1 of 1 (latest)

lament radish
#

I just flashed a new keymap and some switches outputs, don't correspond to the mapped keys.
At the moment y and z are switched , semicolon outputs ö and Left-shift outputs minus.
Could this be because of my system standard being qwertz?

limpid nest
#

Yes. The keyboard sends key codes, not characters. Your OS then maps those codes to characters. The names for each key code are assuming a standard US layout.

#

If you want to have names that match your OS layout in your keymap, you can add something like

#define DE_Y Z
#define DE_Z Y

to add your own aliases

lament radish
#

okay, so defining aliases is the common work around or is there a way, to tell zmk that my key codes are for a german layout?
Thank you for your fast help!

limpid nest
#

That is the recommended way to do things.

#

At some point we will likely create header files that you can include with aliases for common keyboard layouts (this is what QMK does), but nobody has done that work yet