Refactor Unicode feature (#18333)
This commit is contained in:
@ -15,14 +15,14 @@
|
||||
*/
|
||||
|
||||
#include "process_unicode.h"
|
||||
#include "action_util.h"
|
||||
#include "eeprom.h"
|
||||
#include "unicode.h"
|
||||
#include "quantum_keycodes.h"
|
||||
|
||||
bool process_unicode(uint16_t keycode, keyrecord_t *record) {
|
||||
if (keycode >= QK_UNICODE && keycode <= QK_UNICODE_MAX && record->event.pressed) {
|
||||
unicode_input_start();
|
||||
register_hex(keycode & 0x7FFF);
|
||||
unicode_input_finish();
|
||||
if (record->event.pressed) {
|
||||
if (keycode >= QK_UNICODE && keycode <= QK_UNICODE_MAX) {
|
||||
register_unicode(keycode & 0x7FFF);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user