Clean up and implement MT release w/o mod press.
This commit is contained in:
parent
53aadc4f93
commit
76a433fc39
4 changed files with 14 additions and 7 deletions
|
|
@ -32,8 +32,16 @@ bool zmk_handle_action(zmk_action action, struct zmk_key_event *key_event)
|
|||
zmk_hid_unregister_mods(mods);
|
||||
if (action_effect_pending & BIT(flattened_index))
|
||||
{
|
||||
// Allow baseline keycode to flow to the endpoints!
|
||||
return true;
|
||||
struct zmk_key_event non_mod_event =
|
||||
{
|
||||
.row = key_event->row,
|
||||
.column = key_event->column,
|
||||
.key = ZK_KEY(key_event->key),
|
||||
.pressed = true};
|
||||
|
||||
zmk_handle_key(non_mod_event);
|
||||
non_mod_event.pressed = false;
|
||||
zmk_handle_key(non_mod_event);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue