summaryrefslogtreecommitdiff
path: root/quantum/keymap_unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/keymap_unicode.c')
-rw-r--r--quantum/keymap_unicode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/keymap_unicode.c b/quantum/keymap_unicode.c
index a44965e611..3a480878b7 100644
--- a/quantum/keymap_unicode.c
+++ b/quantum/keymap_unicode.c
@@ -27,14 +27,14 @@ uint16_t hextokeycode(int hex) {
}
}
-void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
+void action_custom(keyrecord_t *record, uint32_t code)
{
// For more info on how this works per OS, see here: https://en.wikipedia.org/wiki/Unicode_input#Hexadecimal_code_input
if (record->event.pressed) {
- uint16_t unicode = (opt << 8) | id;
- register_code(KC_LALT);
+ uint32_t unicode = code;
+ // register_code(KC_LALT);
register_code(hextokeycode((unicode & 0xF000) >> 12));
unregister_code(hextokeycode((unicode & 0xF000) >> 12));
@@ -55,7 +55,7 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
// register_code(hextokeycode(0x1));
// unregister_code(hextokeycode(0x1));
- unregister_code(KC_LALT);
+ // unregister_code(KC_LALT);
}
return;
} \ No newline at end of file