From 779b29489af21b43ecacb76946207922302c1d69 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sat, 31 Dec 2022 16:57:15 -0800 Subject: [PATCH] Keyboard/fix work louder micro (#18968) --- keyboards/work_louder/micro/keymaps/via/keymap.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/keyboards/work_louder/micro/keymaps/via/keymap.c b/keyboards/work_louder/micro/keymaps/via/keymap.c index bcb55a3991e2..8143211fc291 100644 --- a/keyboards/work_louder/micro/keymaps/via/keymap.c +++ b/keyboards/work_louder/micro/keymaps/via/keymap.c @@ -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; } @@ -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); +}