Browse Source

Declare Unicode method hex_to_keycode() as “weak”

Declare Unicode method hex_to_keycode() as “weak” to be able to override it in keymaps.
coderkun 8 years ago
parent
commit
a3f5a4cf58
1 changed files with 1 additions and 0 deletions
  1. 1 0
      quantum/process_keycode/process_unicode.c

+ 1 - 0
quantum/process_keycode/process_unicode.c

@@ -2,6 +2,7 @@
 
 static uint8_t input_mode;
 
+__attribute__((weak))
 uint16_t hex_to_keycode(uint8_t hex)
 {
   if (hex == 0x0) {