For example, with a momentary-layer key, you can reproduce by pressing/releasing in this order:
Press MO(LAYER)
Press target key
Release MO(LAYER)
Release target key
It will work correctly when the following order is respected:
Press MO(LAYER)
Press target key
Release target key
Release MO(LAYER)
These two orderings should have the same behavior. Fixing this isn't trivial; keeping track of pressed keys in different layers could use a lot of RAM. Probably best to see what QMK does to solve this.
Implemented a clear-keyboard API that keymaps can use to force-release all pressed keys. A more fine-grained approach might be useful in the future, but this is good enough for now.
For example, with a momentary-layer key, you can reproduce by pressing/releasing in this order:
It will work correctly when the following order is respected:
These two orderings should have the same behavior. Fixing this isn't trivial; keeping track of pressed keys in different layers could use a lot of RAM. Probably best to see what QMK does to solve this.