Fix Bootmgic Mod Handling for LM keycodes (#4740)

This commit is contained in:
Drashna Jaelre 2019-02-06 12:43:25 -08:00 committed by MechMerlin
parent afa4763ef5
commit 35f6919673

View file

@ -127,7 +127,7 @@ action_t action_for_key(uint8_t layer, keypos_t key)
action.code = ACTION_LAYER_TAP_TOGGLE(keycode & 0xFF); action.code = ACTION_LAYER_TAP_TOGGLE(keycode & 0xFF);
break; break;
case QK_LAYER_MOD ... QK_LAYER_MOD_MAX: case QK_LAYER_MOD ... QK_LAYER_MOD_MAX:
mod = keycode & 0xF; mod = mod_config(keycode & 0xF);
action_layer = (keycode >> 4) & 0xF; action_layer = (keycode >> 4) & 0xF;
action.code = ACTION_LAYER_MODS(action_layer, mod); action.code = ACTION_LAYER_MODS(action_layer, mod);
break; break;