Fix keymap for new actions
parent
a8c465215f
commit
c26a5eb2ac
|
@ -108,9 +108,9 @@ action_t keymap_fn_to_action(uint8_t keycode)
|
||||||
uint8_t layer = keymap_fn_layer(FN_INDEX(keycode));
|
uint8_t layer = keymap_fn_layer(FN_INDEX(keycode));
|
||||||
uint8_t key = keymap_fn_keycode(FN_INDEX(keycode));
|
uint8_t key = keymap_fn_keycode(FN_INDEX(keycode));
|
||||||
if (key) {
|
if (key) {
|
||||||
action.code = ACTION_KEYMAP_TAP_KEY(layer, key);
|
action.code = ACTION_LAYER_TAP_KEY(layer, key);
|
||||||
} else {
|
} else {
|
||||||
action.code = ACTION_KEYMAP_MOMENTARY(layer);
|
action.code = ACTION_LAYER_MOMENTARY(layer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return action;
|
return action;
|
||||||
|
|
|
@ -163,15 +163,15 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* Fn action definition
|
* Fn action definition
|
||||||
*/
|
*/
|
||||||
static const uint16_t PROGMEM fn_actions[] = {
|
static const uint16_t PROGMEM fn_actions[] = {
|
||||||
[0] = ACTION_DEFAULT_LAYER_SET(0),
|
[0] = ACTION_LAYER_MOMENTARY(0),
|
||||||
[1] = ACTION_DEFAULT_LAYER_SET(1),
|
[1] = ACTION_LAYER_MOMENTARY(1),
|
||||||
[2] = ACTION_DEFAULT_LAYER_SET(2),
|
[2] = ACTION_LAYER_MOMENTARY(2),
|
||||||
[3] = ACTION_DEFAULT_LAYER_SET(3),
|
[3] = ACTION_LAYER_MOMENTARY(3),
|
||||||
[4] = ACTION_DEFAULT_LAYER_SET(4),
|
[4] = ACTION_LAYER_MOMENTARY(4),
|
||||||
[5] = ACTION_DEFAULT_LAYER_SET(5),
|
[5] = ACTION_LAYER_MOMENTARY(5),
|
||||||
[6] = ACTION_DEFAULT_LAYER_SET(6),
|
[6] = ACTION_LAYER_MOMENTARY(6),
|
||||||
[7] = ACTION_DEFAULT_LAYER_SET(7),
|
[7] = ACTION_LAYER_MOMENTARY(7),
|
||||||
[8] = ACTION_DEFAULT_LAYER_SET(8),
|
[8] = ACTION_LAYER_MOMENTARY(8),
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue