Browse Source

Fix keymap for new actions

core
tmk 11 years ago
parent
commit
1440b677a7
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      common/keymap.c

+ 2
- 2
common/keymap.c View File

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;