diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-02-17 08:58:02 -0800 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-04-12 14:07:05 -0700 |
| commit | 7148c0b10c298af12172231e79c0cda1c1f76f04 (patch) | |
| tree | 4d09f1dc3c1f6652317f9983493fba4dd24b2221 /quantum/quantum.c | |
| parent | a2090d5e863a580d71e29de104844d5fc4fbe036 (diff) | |
| download | qmk_firmware-7148c0b10c298af12172231e79c0cda1c1f76f04.tar.gz qmk_firmware-7148c0b10c298af12172231e79c0cda1c1f76f04.zip | |
Clean up some of the code
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 0fe918b36..7038228f7 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -957,13 +957,12 @@ void send_char(char ascii_code) { | |||
| 957 | 957 | ||
| 958 | keycode = pgm_read_byte(&ascii_to_keycode_lut[(uint8_t)ascii_code]); | 958 | keycode = pgm_read_byte(&ascii_to_keycode_lut[(uint8_t)ascii_code]); |
| 959 | if (pgm_read_byte(&ascii_to_shift_lut[(uint8_t)ascii_code])) { is_shifted = true; } else { is_shifted = false; } | 959 | if (pgm_read_byte(&ascii_to_shift_lut[(uint8_t)ascii_code])) { is_shifted = true; } else { is_shifted = false; } |
| 960 | if (pgm_read_byte(&ascii_to_alt_lut[(uint8_t)ascii_code])) { is_alted = true; } else { is_alted = false; } | 960 | if (pgm_read_byte(&ascii_to_alt_lut[(uint8_t)ascii_code])) { is_alted = true; } else { is_alted = false; } |
| 961 | 961 | ||
| 962 | if (is_shifted) { register_code(KC_LSFT); } | 962 | if (is_shifted) { register_code(KC_LSFT); } |
| 963 | if (is_alted) { register_code(KC_RALT); } | 963 | if (is_alted) { register_code(KC_RALT); } |
| 964 | 964 | ||
| 965 | register_code(keycode); | 965 | tap_code(keycode); |
| 966 | unregister_code(keycode); | ||
| 967 | 966 | ||
| 968 | if (is_alted) { unregister_code(KC_RALT); } | 967 | if (is_alted) { unregister_code(KC_RALT); } |
| 969 | if (is_shifted) { unregister_code(KC_LSFT); } | 968 | if (is_shifted) { unregister_code(KC_LSFT); } |
