Merge pull request #615 from lugray/fix_active_tracking

TopsyTurvy: Ensure active state toggles off
pull/600/head
Gergely Nagy 6 years ago committed by GitHub
commit 3580855e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,6 +42,8 @@ EventHandlerResult TopsyTurvy::onKeyswitchEvent(Key &mapped_key, byte row, byte
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
is_active_ = keyIsPressed(key_state);
if (keyToggledOn(key_state)) { if (keyToggledOn(key_state)) {
last_pressed_position_ = row * COLS + col; last_pressed_position_ = row * COLS + col;
} else { } else {
@ -50,7 +52,6 @@ EventHandlerResult TopsyTurvy::onKeyswitchEvent(Key &mapped_key, byte row, byte
} }
} }
is_active_ = keyIsPressed(key_state);
mapped_key.raw = mapped_key.raw - ranges::TT_FIRST; mapped_key.raw = mapped_key.raw - ranges::TT_FIRST;
// invert the shift state // invert the shift state

Loading…
Cancel
Save