qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.24k stars 39.32k forks source link

[Bug] LSFT + RSFT + <num> breaks layout #12481

Closed samhh closed 3 years ago

samhh commented 3 years ago

Holding both shift keys and entering a number on the top row of the keyboard causes strange output / breaks layout. For example, LSFT + RSFT + 1 causes layer 1 to be permanently activated. Some other numbers do the same, some give other strange output, and some do nothing.

System Information

Additional Context

The relevant custom keymap if relevant: samhh/qmk_firmware

elfmimi commented 3 years ago

That behavior is by design. Here is its documentation: COMMAND feature Since you only have 3 layers defined, LSHIFT + RSHIFT + 3 and so forth give undefined results.

You may disable those combinations by adding

#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS false
#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS false

to your keymap's config.h

or otherwise you may add

COMMAND_ENABLE = no

to your keymap's rules.mk to disable the COMMAND feature completely.

samhh commented 3 years ago

Clearly my Google-fu has failed me. :see_no_evil:

Disabling the feature has solved my problem, many thanks!