Sfoglia il codice sorgente

Fix keymap for new actions

core
tmk 11 anni fa
parent
commit
1440b677a7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      common/keymap.c

+ 2
- 2
common/keymap.c Vedi File

@@ -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;