From d193a6d2efde78b957adbcde65392c9db75a46b3 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 27 Feb 2013 10:32:46 +0900 Subject: [PATCH] Fix SET_DEFAULT_LAYER action and keymap of gh60 --- README.md | 2 +- common/action.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index d4fee96c..7ceffce7 100644 --- a/README.md +++ b/README.md @@ -470,7 +470,7 @@ See `keyboard/hhkb/keymap.c` for sample. ### 3. Layer Layer is key-action map to assign action to every physical key. You can define multiple layers in keymap and make layers active out of keymap during operation at will. - First layer is indexed by `0` which usually become **`default layer`** and active in initial state. + First layer is indexed by `0` which usually become `default layer` and active in initial state. You can define **16 layers** at most in each keymaps[] and overlays[]. diff --git a/common/action.c b/common/action.c index 7f3e236f..7ca481fb 100644 --- a/common/action.c +++ b/common/action.c @@ -384,21 +384,15 @@ static void process_action(keyrecord_t *record) /* Keymap Reset default layer */ case (OP_RESET | ON_PRESS): if (event.pressed) { - overlay_clear(); - keymap_clear(); default_layer_set(action.layer.val); } break; case (OP_RESET | ON_RELEASE): if (!event.pressed) { - overlay_clear(); - keymap_clear(); default_layer_set(action.layer.val); } break; case (OP_RESET | ON_BOTH): - overlay_clear(); - keymap_clear(); default_layer_set(action.layer.val); break;