summaryrefslogtreecommitdiff
path: root/common/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/action.c')
-rw-r--r--common/action.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/action.c b/common/action.c
index 6d5336752e..aadf5e16e8 100644
--- a/common/action.c
+++ b/common/action.c
@@ -358,6 +358,7 @@ static void process_action(keyrecord_t *record)
layer_switch(action.layer.val);
}
else {
+ // NOTE: This is needed by legacy keymap support
layer_switch(default_layer);
}
break;
@@ -421,7 +422,7 @@ static void process_action(keyrecord_t *record)
unregister_code(action.layer.code);
} else {
//debug("LAYER_PRESSED: No tap: NO ACTION\n");
-//TODO: this is ok?
+ // NOTE: This is needed by legacy keymap support
debug("LAYER_PRESSED: No tap: return to default layer\n");
layer_switch(default_layer);
}