Fix keymap for new actions
This commit is contained in:
parent
eb24b4ab8a
commit
1440b677a7
@ -108,9 +108,9 @@ action_t keymap_fn_to_action(uint8_t keycode)
|
||||
uint8_t layer = keymap_fn_layer(FN_INDEX(keycode));
|
||||
uint8_t key = keymap_fn_keycode(FN_INDEX(keycode));
|
||||
if (key) {
|
||||
action.code = ACTION_KEYMAP_TAP_KEY(layer, key);
|
||||
action.code = ACTION_LAYER_TAP_KEY(layer, key);
|
||||
} else {
|
||||
action.code = ACTION_KEYMAP_MOMENTARY(layer);
|
||||
action.code = ACTION_LAYER_MOMENTARY(layer);
|
||||
}
|
||||
}
|
||||
return action;
|
||||
|
Reference in New Issue
Block a user