process_unicode.c 317 B

12345678910111213
  1. #include "process_unicode.h"
  2. #include "action_util.h"
  3. bool process_unicode(uint16_t keycode, keyrecord_t *record) {
  4. if (keycode > QK_UNICODE && record->event.pressed) {
  5. uint16_t unicode = keycode & 0x7FFF;
  6. unicode_input_start();
  7. register_hex(unicode);
  8. unicode_input_finish();
  9. }
  10. return true;
  11. }