diff options
| author | tmk <nobody@nowhere> | 2013-01-31 17:50:53 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-01-31 17:50:53 +0900 |
| commit | d95463f2e0369dc0e28497bb923b3012fb09e900 (patch) | |
| tree | a5ebf4dd9638f75a52445378d47db2a8ac038b27 /common/action.c | |
| parent | e760953910a51e5972dda21aa9d03279e6f1230b (diff) | |
| download | qmk_firmware-d95463f2e0369dc0e28497bb923b3012fb09e900.tar.gz qmk_firmware-d95463f2e0369dc0e28497bb923b3012fb09e900.zip | |
Add legacy keymap support.
Diffstat (limited to 'common/action.c')
| -rw-r--r-- | common/action.c | 9 |
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; |
