aboutsummaryrefslogtreecommitdiff
path: root/keyboard/gh60/keymap.c
diff options
context:
space:
mode:
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[] = {
166action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col) { 166action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col) {
167 uint8_t key = (pgm_read_byte(&keymaps[(layer)][(row)][(col)])); 167 uint8_t key = (pgm_read_byte(&keymaps[(layer)][(row)][(col)]));
168 168
169 // TODO: move to action.c ?
170 /* Transparently use default layer */
171 if (key == KC_TRANSPARENT) {
172 key = (pgm_read_byte(&keymaps[(default_layer)][(row)][(col)]));
173 }
174
175 action_t action; 169 action_t action;
176 switch (key) { 170 switch (key) {
177 case KC_A ... KC_EXSEL: 171 case KC_A ... KC_EXSEL:
@@ -199,7 +193,9 @@ action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col) {
199 action.code = ACTION_NO; 193 action.code = ACTION_NO;
200 } 194 }
201 break; 195 break;
202 case KC_NO ... KC_UNDEFINED: 196 case KC_TRNS:
197 action.code = ACTION_TRANSPARENT;
198 break;
203 default: 199 default:
204 action.code = ACTION_NO; 200 action.code = ACTION_NO;
205 break; 201 break;