summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_unicode.c
blob: ccae6fdcad5c54a021238bf02af261573d2e0114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "process_unicode.h"
#include "action_util.h"

bool process_unicode(uint16_t keycode, keyrecord_t *record) {
  if (keycode > QK_UNICODE && record->event.pressed) {
    uint16_t unicode = keycode & 0x7FFF;
    unicode_input_start();
    register_hex(unicode);
    unicode_input_finish();
  }
  return true;
}