Skip to content

Commit

Permalink
overload: preserve layer during pending action
Browse files Browse the repository at this point in the history
  • Loading branch information
lobre committed May 3, 2024
1 parent ca9aa51 commit d962575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ static long process_descriptor(struct keyboard *kbd, uint8_t code,
kbd->overload_start_time = time;
activate_layer(kbd, code, idx);
update_mods(kbd, -1, 0);
} else {
} else if (!kbd->pending_key.code) {
deactivate_layer(kbd, idx);
update_mods(kbd, -1, 0);

Expand Down

0 comments on commit d962575

Please sign in to comment.