diff options
| -rw-r--r-- | quantum/process_keycode/process_ucis.c | 5 |
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)) | ||
| 68 | void qk_ucis_cancel(void) { | ||
| 69 | } | ||
| 70 | |||
| 67 | void register_ucis(const char *hex) { | 71 | void 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 | ||
