Refactor Unicode feature (#18333)

This commit is contained in:
Ryan authored and GitHub committed 2022-09-12 08:49:04 -07:00
1 parent 4087251da6
commit 3d667f0970
15 files changed
+591 -506

No files matched your search

+6 -6
View File
@@ -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;
}