Fix for MT keys sending press/release quickly.
This commit is contained in:
parent
8de6c85b74
commit
bf9ba855a3
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ bool zmk_handle_action(zmk_action action, struct zmk_key_event *key_event)
|
|||
.pressed = true};
|
||||
|
||||
zmk_handle_key(non_mod_event);
|
||||
// A small sleep is needed to ensure device layer sends initial
|
||||
// key, before we send the release.
|
||||
k_msleep(10);
|
||||
non_mod_event.pressed = false;
|
||||
zmk_handle_key(non_mod_event);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue