aboutsummaryrefslogtreecommitdiff
path: root/common/action.c
diff options
context:
space:
mode:
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 4838ea062..d1f493fe0 100644
--- a/common/action.c
+++ b/common/action.c
@@ -358,6 +358,10 @@ static void process_action(keyrecord_t *record)
358 if (event.pressed) { 358 if (event.pressed) {
359 layer_switch(action.layer.opt); 359 layer_switch(action.layer.opt);
360 } 360 }
361//TODO: this is ok?
362 else {
363 layer_switch(default_layer);
364 }
361 break; 365 break;
362 case 0xF0: 366 case 0xF0:
363 // tap toggle 367 // tap toggle
@@ -394,7 +398,10 @@ static void process_action(keyrecord_t *record)
394 debug("LAYER_PRESSED: Tap: unregister_code\n"); 398 debug("LAYER_PRESSED: Tap: unregister_code\n");
395 unregister_code(action.layer.code); 399 unregister_code(action.layer.code);
396 } else { 400 } else {
397 debug("LAYER_PRESSED: No tap: NO ACTION\n"); 401 //debug("LAYER_PRESSED: No tap: NO ACTION\n");
402//TODO: this is ok?
403 debug("LAYER_PRESSED: No tap: return to default layer\n");
404 layer_switch(default_layer);
398 } 405 }
399 } 406 }
400 break; 407 break;