Skip to content

Commit

Permalink
Keyboard/fix work louder micro (qmk#18968)
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna authored and jasonisgraham committed Jun 12, 2023
1 parent d6d9964 commit 779b294
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions keyboards/work_louder/micro/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
layer_state_set_kb(layer_state);
}
break;
case 0x5000 ... 0x500F:
if (record->event.pressed) {
layer_move(keycode - 0x5000);
}
return false; break;
case 0x5010 ... 0x501F:
if (record->event.pressed) {
layer_move(keycode - 0x5010);
}
return false; break;
}
return true;
}
Expand Down Expand Up @@ -164,3 +174,7 @@ void via_custom_value_command_kb(uint8_t *data, uint8_t length) {
}
*command_id = id_unhandled;
}

void suspend_wakeup_init_user(void) {
layer_state_set_user(layer_state);
}

0 comments on commit 779b294

Please sign in to comment.