Browse Source

Fix for MT keys sending press/release quickly.

xmkb
Pete Johanson 5 years ago
parent
commit
bf9ba855a3
  1. 3
      src/handlers.c

3
src/handlers.c

@ -40,6 +40,9 @@ bool zmk_handle_action(zmk_action action, struct zmk_key_event *key_event)
.pressed = true}; .pressed = true};
zmk_handle_key(non_mod_event); 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; non_mod_event.pressed = false;
zmk_handle_key(non_mod_event); zmk_handle_key(non_mod_event);
} }

Loading…
Cancel
Save