Skip to content

Commit

Permalink
Don't register extra keys on release
Browse files Browse the repository at this point in the history
  • Loading branch information
p00ya committed Jul 28, 2020
1 parent 4a71afd commit 7bae20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/process_keycode/process_auto_shift.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static void autoshift_check_record(uint16_t keycode, keyrecord_t *record) {
if (keycode == autoshift_lastkey && !record->event.pressed) {
// Time since the initial press was recorded.
const uint16_t elapsed = TIMER_DIFF_16(record->event.time, autoshift_time);
if (elapsed < autoshift_timeout) {
if (!autoshift_flags.registered && elapsed < autoshift_timeout) {
autoshift_flags.lastshifted = false;
// Auto-shiftable key is being released before the shift timeout;
// simulate the original press then let the usual processing take
Expand Down

0 comments on commit 7bae20a

Please sign in to comment.