QMK Logo QMK Firmware

The goal of the QMK software project is to develop a completely customizable, powerful, and enjoyable firmware experience for any project - keyboard or otherwise - and to provide helpful, encouraging, and kind support and feedback for people with any software development experience.

View on GitHub

Download Zip Download Tar

Current Version Build Status Discord Docs Status GitHub contributors GitHub forks

Pages

This project is maintained by QMK collaborators and contributors like you!

Hosted on GitHub Pages — Theme by orderedlist

Keep pressed keys on layer state change

This allows pressed keys to stay pressed when a layer change occurs.

Say you’re playing a game and you’re holding W to run forward. You need to access a menu or skill that’s bound to F4. You have that set on a momentary layer, so you try pressing Fn+4 — but as soon as you press Fn, QMK resets the W key and you stop moving forward, even though you’re still holding the key.

This fixes the problem by not resetting held keys when the layer state changes. It relies on the prevent stuck modifiers implementation keeping track of which key was pressed on which layer and resetting them accordingly so that no keys end up stuck. As a consequence, it’s disabled when STRICT_LAYER_RELEASE is defined, for backwards compatibility reasons.