From 77af88042a0622946d7af7aff489cc6e18469104 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 12 Feb 2013 17:12:04 +0900 Subject: Change ACTION_LAYER_SET_LAYER behaviour --- common/action.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/action.c') 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); } -- cgit v1.2.3