aboutsummaryrefslogtreecommitdiffstats
path: root/keyboard/gh60/keymap.c
diff options
context:
space:
mode:
authorGravatar tmk <nobody@nowhere>2013-02-13 09:23:52 +0900
committerGravatar tmk <nobody@nowhere>2013-02-13 09:26:22 +0900
commit48e6d0848cdeac26ffab101ea2ef48e5ac60acd3 (patch)
tree7f6d82af6752a9ca0d7ae2e3b72cf1ad3b602a3a /keyboard/gh60/keymap.c
parentf02431e9da2158ff8a8508629b86329fef0ba24a (diff)
downloadqmk_firmware-48e6d0848cdeac26ffab101ea2ef48e5ac60acd3.tar.gz
Make Transparent feature available to new keymaps.
Diffstat (limited to 'keyboard/gh60/keymap.c')
-rw-r--r--keyboard/gh60/keymap.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/keyboard/gh60/keymap.c b/keyboard/gh60/keymap.c
index 7e4f945f6..39bb474c4 100644
--- a/keyboard/gh60/keymap.c
+++ b/keyboard/gh60/keymap.c
@@ -166,12 +166,6 @@ static const uint16_t PROGMEM fn_actions[] = {
action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col) {
uint8_t key = (pgm_read_byte(&keymaps[(layer)][(row)][(col)]));
- // TODO: move to action.c ?
- /* Transparently use default layer */
- if (key == KC_TRANSPARENT) {
- key = (pgm_read_byte(&keymaps[(default_layer)][(row)][(col)]));
- }
-
action_t action;
switch (key) {
case KC_A ... KC_EXSEL:
@@ -199,7 +193,9 @@ action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col) {
action.code = ACTION_NO;
}
break;
- case KC_NO ... KC_UNDEFINED:
+ case KC_TRNS:
+ action.code = ACTION_TRANSPARENT;
+ break;
default:
action.code = ACTION_NO;
break;