Fix for MT keys sending press/release quickly.

This commit is contained in:
Pete Johanson 2020-06-02 11:56:37 -04:00
parent 8de6c85b74
commit bf9ba855a3

View file

@ -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);
}