aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-11-19 16:37:49 -0800
committerDrashna Jaelre <drashna@live.com>2018-11-19 16:37:49 -0800
commit26156e84e8913754586b16fecd41f268ede722df (patch)
tree1619ffa38b11d8f6948d6ece60b073bfefeaa539 /quantum/process_keycode
parent39bd760faf2666e91d6dc5b199f02fa3206c6acd (diff)
downloadqmk_firmware-26156e84e8913754586b16fecd41f268ede722df.tar.gz
qmk_firmware-26156e84e8913754586b16fecd41f268ede722df.zip
Fix UCIS code
Revert code change that broke UCIS due to bad suggestions
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r--quantum/process_keycode/process_ucis.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_ucis.c b/quantum/process_keycode/process_ucis.c
index 380199771..8deb24a86 100644
--- a/quantum/process_keycode/process_ucis.c
+++ b/quantum/process_keycode/process_ucis.c
@@ -93,6 +93,8 @@ void register_ucis(const char *hex) {
93} 93}
94 94
95bool process_ucis (uint16_t keycode, keyrecord_t *record) { 95bool process_ucis (uint16_t keycode, keyrecord_t *record) {
96 uint8_t i;
97
96 unicode_input_mode_init(); 98 unicode_input_mode_init();
97 99
98 if (!qk_ucis_state.in_progress) 100 if (!qk_ucis_state.in_progress)
@@ -122,7 +124,7 @@ bool process_ucis (uint16_t keycode, keyrecord_t *record) {
122 if (keycode == KC_ENT || keycode == KC_SPC || keycode == KC_ESC) { 124 if (keycode == KC_ENT || keycode == KC_SPC || keycode == KC_ESC) {
123 bool symbol_found = false; 125 bool symbol_found = false;
124 126
125 for (uint8_t i = qk_ucis_state.count; i > 0; i--) { 127 for (i = qk_ucis_state.count; i > 0; i--) {
126 register_code (KC_BSPC); 128 register_code (KC_BSPC);
127 unregister_code (KC_BSPC); 129 unregister_code (KC_BSPC);
128 wait_ms(UNICODE_TYPE_DELAY); 130 wait_ms(UNICODE_TYPE_DELAY);
@@ -134,7 +136,7 @@ bool process_ucis (uint16_t keycode, keyrecord_t *record) {
134 } 136 }
135 137
136 unicode_input_start(); 138 unicode_input_start();
137 for (uint8_t i = 0; ucis_symbol_table[i].symbol; i++) { 139 for (i = 0; ucis_symbol_table[i].symbol; i++) {
138 if (is_uni_seq (ucis_symbol_table[i].symbol)) { 140 if (is_uni_seq (ucis_symbol_table[i].symbol)) {
139 symbol_found = true; 141 symbol_found = true;
140 register_ucis(ucis_symbol_table[i].code + 2); 142 register_ucis(ucis_symbol_table[i].code + 2);