aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/common/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/keymap.c')
-rw-r--r--tmk_core/common/keymap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/common/keymap.c b/tmk_core/common/keymap.c
index 9f4fab521..a43ca460f 100644
--- a/tmk_core/common/keymap.c
+++ b/tmk_core/common/keymap.c
@@ -27,8 +27,13 @@ static action_t keycode_to_action(uint8_t keycode);
/* converts key to action */
+__attribute__((__weak__))
action_t action_for_key(uint8_t layer, keypos_t key)
{
+ return action_for_key_default(layer, key);
+}
+
+action_t action_for_key_default(uint8_t layer, keypos_t key)
uint8_t keycode = keymap_key_to_keycode(layer, key);
switch (keycode) {
case KC_FN0 ... KC_FN31: