Skip to content

Commit

Permalink
API change.
Browse files Browse the repository at this point in the history
  • Loading branch information
voidyourwarranty2 committed Nov 21, 2024
1 parent 7aa3a14 commit cada819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/behaviors/behavior_antecedent_morph.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static int on_antecedent_morph_binding_pressed(struct zmk_behavior_binding *bind
}
}

return behavior_keymap_binding_pressed(data->pressed_binding, event);
return zmk_behavior_invoke_binding(data->pressed_binding,event,true);
}

// The release of the antecedent morph behavior considers the behavior that was recorded in the instance data and
Expand All @@ -159,7 +159,7 @@ static int on_antecedent_morph_binding_released(struct zmk_behavior_binding *bin

struct zmk_behavior_binding *pressed_binding = data->pressed_binding;
data->pressed_binding = NULL;
return behavior_keymap_binding_released(pressed_binding, event);
return zmk_behavior_invoke_binding(pressed_binding,event,false);
}

static const struct behavior_driver_api behavior_antecedent_morph_driver_api = {
Expand Down

0 comments on commit cada819

Please sign in to comment.