Browse Source

fix(behavior): Properly break in decision switch statement.

Co-authored-by: jding <jding@roblox.com>
xmkb
jmding8 3 years ago committed by GitHub
parent
commit
73fd4b9230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/src/behaviors/behavior_hold_tap.c

3
app/src/behaviors/behavior_hold_tap.c

@ -413,10 +413,13 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap, @@ -413,10 +413,13 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap,
switch (hold_tap->config->flavor) {
case FLAVOR_HOLD_PREFERRED:
decide_hold_preferred(hold_tap, decision_moment);
break;
case FLAVOR_BALANCED:
decide_balanced(hold_tap, decision_moment);
break;
case FLAVOR_TAP_PREFERRED:
decide_tap_preferred(hold_tap, decision_moment);
break;
}
if (hold_tap->status == STATUS_UNDECIDED) {

Loading…
Cancel
Save