aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_unicode_common.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-11-04 16:22:17 +1100
committerGitHub <noreply@github.com>2021-11-03 22:22:17 -0700
commitf529580860cf5a1de4afc10432f218a45daae17a (patch)
tree1d2fa041174f2586230ab831c05e5b56d8ba4f92 /quantum/process_keycode/process_unicode_common.c
parentb06d9d822cfb72e0728b11711a333f2f5d3c631e (diff)
downloadqmk_firmware-f529580860cf5a1de4afc10432f218a45daae17a.tar.gz
qmk_firmware-f529580860cf5a1de4afc10432f218a45daae17a.zip
Basic keycode overhaul (#14726)
Diffstat (limited to 'quantum/process_keycode/process_unicode_common.c')
-rw-r--r--quantum/process_keycode/process_unicode_common.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/quantum/process_keycode/process_unicode_common.c b/quantum/process_keycode/process_unicode_common.c
index 7853c22c5..9c82571c7 100644
--- a/quantum/process_keycode/process_unicode_common.c
+++ b/quantum/process_keycode/process_unicode_common.c
@@ -87,7 +87,7 @@ __attribute__((weak)) void unicode_input_start(void) {
87 // UNICODE_KEY_LNX (which is usually Ctrl-Shift-U) might not work 87 // UNICODE_KEY_LNX (which is usually Ctrl-Shift-U) might not work
88 // correctly in the shifted case. 88 // correctly in the shifted case.
89 if (unicode_config.input_mode == UC_LNX && unicode_saved_caps_lock) { 89 if (unicode_config.input_mode == UC_LNX && unicode_saved_caps_lock) {
90 tap_code(KC_CAPSLOCK); 90 tap_code(KC_CAPS_LOCK);
91 } 91 }
92 92
93 unicode_saved_mods = get_mods(); // Save current mods 93 unicode_saved_mods = get_mods(); // Save current mods
@@ -103,9 +103,9 @@ __attribute__((weak)) void unicode_input_start(void) {
103 case UC_WIN: 103 case UC_WIN:
104 // For increased reliability, use numpad keys for inputting digits 104 // For increased reliability, use numpad keys for inputting digits
105 if (!unicode_saved_num_lock) { 105 if (!unicode_saved_num_lock) {
106 tap_code(KC_NUMLOCK); 106 tap_code(KC_NUM_LOCK);
107 } 107 }
108 register_code(KC_LALT); 108 register_code(KC_LEFT_ALT);
109 tap_code(KC_KP_PLUS); 109 tap_code(KC_KP_PLUS);
110 break; 110 break;
111 case UC_WINC: 111 case UC_WINC:
@@ -125,13 +125,13 @@ __attribute__((weak)) void unicode_input_finish(void) {
125 case UC_LNX: 125 case UC_LNX:
126 tap_code(KC_SPACE); 126 tap_code(KC_SPACE);
127 if (unicode_saved_caps_lock) { 127 if (unicode_saved_caps_lock) {
128 tap_code(KC_CAPSLOCK); 128 tap_code(KC_CAPS_LOCK);
129 } 129 }
130 break; 130 break;
131 case UC_WIN: 131 case UC_WIN:
132 unregister_code(KC_LALT); 132 unregister_code(KC_LEFT_ALT);
133 if (!unicode_saved_num_lock) { 133 if (!unicode_saved_num_lock) {
134 tap_code(KC_NUMLOCK); 134 tap_code(KC_NUM_LOCK);
135 } 135 }
136 break; 136 break;
137 case UC_WINC: 137 case UC_WINC:
@@ -150,16 +150,16 @@ __attribute__((weak)) void unicode_input_cancel(void) {
150 case UC_LNX: 150 case UC_LNX:
151 tap_code(KC_ESCAPE); 151 tap_code(KC_ESCAPE);
152 if (unicode_saved_caps_lock) { 152 if (unicode_saved_caps_lock) {
153 tap_code(KC_CAPSLOCK); 153 tap_code(KC_CAPS_LOCK);
154 } 154 }
155 break; 155 break;
156 case UC_WINC: 156 case UC_WINC:
157 tap_code(KC_ESCAPE); 157 tap_code(KC_ESCAPE);
158 break; 158 break;
159 case UC_WIN: 159 case UC_WIN:
160 unregister_code(KC_LALT); 160 unregister_code(KC_LEFT_ALT);
161 if (!unicode_saved_num_lock) { 161 if (!unicode_saved_num_lock) {
162 tap_code(KC_NUMLOCK); 162 tap_code(KC_NUM_LOCK);
163 } 163 }
164 break; 164 break;
165 } 165 }