2016-06-29 17:49:41 -04:00
|
|
|
#include "process_unicode.h"
|
2017-01-09 02:59:10 +07:00
|
|
|
#include "action_util.h"
|
2016-06-29 17:49:41 -04:00
|
|
|
|
|
|
|
|
bool process_unicode(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
|
if (keycode > QK_UNICODE && record->event.pressed) {
|
|
|
|
|
uint16_t unicode = keycode & 0x7FFF;
|
2016-08-13 10:43:22 +02:00
|
|
|
unicode_input_start();
|
|
|
|
|
register_hex(unicode);
|
|
|
|
|
unicode_input_finish();
|
2016-06-29 17:49:41 -04:00
|
|
|
}
|
|
|
|
|
return true;
|
2016-08-13 10:46:38 +02:00
|
|
|
}
|
|
|
|
|
|