aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_ucis.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/process_keycode/process_ucis.c')
-rw-r--r--quantum/process_keycode/process_ucis.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_ucis.c b/quantum/process_keycode/process_ucis.c
index 5de2e41fc..fd4508b53 100644
--- a/quantum/process_keycode/process_ucis.c
+++ b/quantum/process_keycode/process_ucis.c
@@ -64,6 +64,10 @@ void qk_ucis_symbol_fallback (void) {
64 } 64 }
65} 65}
66 66
67__attribute__((weak))
68void qk_ucis_cancel(void) {
69}
70
67void register_ucis(const char *hex) { 71void register_ucis(const char *hex) {
68 for(int i = 0; hex[i]; i++) { 72 for(int i = 0; hex[i]; i++) {
69 uint8_t kc = 0; 73 uint8_t kc = 0;
@@ -130,6 +134,7 @@ bool process_ucis (uint16_t keycode, keyrecord_t *record) {
130 134
131 if (keycode == KC_ESC) { 135 if (keycode == KC_ESC) {
132 qk_ucis_state.in_progress = false; 136 qk_ucis_state.in_progress = false;
137 qk_ucis_cancel();
133 return false; 138 return false;
134 } 139 }
135 140