summaryrefslogtreecommitdiff
path: root/keyboard
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-12-17 03:06:21 +0900
committertmk <nobody@nowhere>2012-12-17 03:06:21 +0900
commit4324e163360db4c6ebd25cab74d09d42b3021278 (patch)
treee5bfc84926b09d6f9234effc7e07f87e51645ec4 /keyboard
parent8a709c2750eab09ec0f83450410a13640931d48e (diff)
Fix action of system and consumer usage.
Diffstat (limited to 'keyboard')
-rw-r--r--keyboard/hhkb/keymap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboard/hhkb/keymap.c b/keyboard/hhkb/keymap.c
index 382996ec77..477ef6c33f 100644
--- a/keyboard/hhkb/keymap.c
+++ b/keyboard/hhkb/keymap.c
@@ -186,10 +186,10 @@ action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col) {
action = (action_t)ACTION_KEY(key);
break;
case KC_SYSTEM_POWER ... KC_SYSTEM_WAKE:
- action = (action_t)ACTION_USAGE_SYSTEM(key2system(key));
+ action = (action_t)ACTION_USAGE_SYSTEM(KEYCODE2SYSTEM(key));
break;
case KC_AUDIO_MUTE ... KC_WWW_FAVORITES:
- action = (action_t)ACTION_USAGE_CONSUMER(key2consumer(key));
+ action = (action_t)ACTION_USAGE_CONSUMER(KEYCODE2CONSUMER(key));
break;
case KC_MS_UP ... KC_MS_ACCEL2:
action = (action_t)ACTION_MOUSEKEY(key);