summaryrefslogtreecommitdiff
path: root/common/action.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-01-31 17:50:53 +0900
committertmk <nobody@nowhere>2013-01-31 17:50:53 +0900
commitd95463f2e0369dc0e28497bb923b3012fb09e900 (patch)
treea5ebf4dd9638f75a52445378d47db2a8ac038b27 /common/action.c
parente760953910a51e5972dda21aa9d03279e6f1230b (diff)
Add legacy keymap support.
Diffstat (limited to 'common/action.c')
-rw-r--r--common/action.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/action.c b/common/action.c
index 4838ea0623..d1f493fe06 100644
--- a/common/action.c
+++ b/common/action.c
@@ -358,6 +358,10 @@ static void process_action(keyrecord_t *record)
if (event.pressed) {
layer_switch(action.layer.opt);
}
+//TODO: this is ok?
+ else {
+ layer_switch(default_layer);
+ }
break;
case 0xF0:
// tap toggle
@@ -394,7 +398,10 @@ static void process_action(keyrecord_t *record)
debug("LAYER_PRESSED: Tap: unregister_code\n");
unregister_code(action.layer.code);
} else {
- debug("LAYER_PRESSED: No tap: NO ACTION\n");
+ //debug("LAYER_PRESSED: No tap: NO ACTION\n");
+//TODO: this is ok?
+ debug("LAYER_PRESSED: No tap: return to default layer\n");
+ layer_switch(default_layer);
}
}
break;