1
0

Update keyboards/m65/keymaps/default/keymap.c

Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
This commit is contained in:
Alin Marin Elena
2021-03-29 22:21:36 +01:00
committed by GitHub
parent 756f674407
commit e2145f02d3

View File

@@ -87,8 +87,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case(TT(_LWR)):
if (record->event.pressed && record->tap.count == TAPPING_TOGGLE){
toggle_lwr = toggle_lwr ? false : true;
if (!record->event.pressed && record->tap.count == TAPPING_TOGGLE) {
// This runs before the TT() handler toggles the layer state, so the current layer state is the opposite of the final one after toggle.
toggle_lwr = !layer_state_is(_LWR);
}
return true;
break;