1
0
Fork 0

Change ACTION_LAYER_SET_LAYER behaviour

This commit is contained in:
tmk 2013-02-12 17:12:04 +09:00
parent 0c52ee59f0
commit 77af88042a
2 changed files with 11 additions and 9 deletions

View file

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