diff options
Diffstat (limited to 'quantum/process_keycode/process_ucis.c')
-rw-r--r-- | quantum/process_keycode/process_ucis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/process_keycode/process_ucis.c b/quantum/process_keycode/process_ucis.c index 5de2e41fc..380199771 100644 --- a/quantum/process_keycode/process_ucis.c +++ b/quantum/process_keycode/process_ucis.c | |||
@@ -93,7 +93,7 @@ void register_ucis(const char *hex) { | |||
93 | } | 93 | } |
94 | 94 | ||
95 | bool process_ucis (uint16_t keycode, keyrecord_t *record) { | 95 | bool process_ucis (uint16_t keycode, keyrecord_t *record) { |
96 | uint8_t i; | 96 | unicode_input_mode_init(); |
97 | 97 | ||
98 | if (!qk_ucis_state.in_progress) | 98 | if (!qk_ucis_state.in_progress) |
99 | return true; | 99 | return true; |
@@ -122,7 +122,7 @@ bool process_ucis (uint16_t keycode, keyrecord_t *record) { | |||
122 | if (keycode == KC_ENT || keycode == KC_SPC || keycode == KC_ESC) { | 122 | if (keycode == KC_ENT || keycode == KC_SPC || keycode == KC_ESC) { |
123 | bool symbol_found = false; | 123 | bool symbol_found = false; |
124 | 124 | ||
125 | for (i = qk_ucis_state.count; i > 0; i--) { | 125 | for (uint8_t i = qk_ucis_state.count; i > 0; i--) { |
126 | register_code (KC_BSPC); | 126 | register_code (KC_BSPC); |
127 | unregister_code (KC_BSPC); | 127 | unregister_code (KC_BSPC); |
128 | wait_ms(UNICODE_TYPE_DELAY); | 128 | wait_ms(UNICODE_TYPE_DELAY); |
@@ -134,7 +134,7 @@ bool process_ucis (uint16_t keycode, keyrecord_t *record) { | |||
134 | } | 134 | } |
135 | 135 | ||
136 | unicode_input_start(); | 136 | unicode_input_start(); |
137 | for (i = 0; ucis_symbol_table[i].symbol; i++) { | 137 | for (uint8_t i = 0; ucis_symbol_table[i].symbol; i++) { |
138 | if (is_uni_seq (ucis_symbol_table[i].symbol)) { | 138 | if (is_uni_seq (ucis_symbol_table[i].symbol)) { |
139 | symbol_found = true; | 139 | symbol_found = true; |
140 | register_ucis(ucis_symbol_table[i].code + 2); | 140 | register_ucis(ucis_symbol_table[i].code + 2); |