diff options
| -rw-r--r-- | quantum/quantum.c | 5 | ||||
| -rw-r--r-- | quantum/quantum.h | 1 |
2 files changed, 3 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); } |
diff --git a/quantum/quantum.h b/quantum/quantum.h index c7fce9a0f..f7b278cef 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h | |||
| @@ -206,6 +206,7 @@ extern uint32_t default_layer_state; | |||
| 206 | 206 | ||
| 207 | #define SEND_STRING(str) send_string_P(PSTR(str)) | 207 | #define SEND_STRING(str) send_string_P(PSTR(str)) |
| 208 | extern const bool ascii_to_shift_lut[0x80]; | 208 | extern const bool ascii_to_shift_lut[0x80]; |
| 209 | extern const bool ascii_to_alt_lut[0x80]; | ||
| 209 | extern const uint8_t ascii_to_keycode_lut[0x80]; | 210 | extern const uint8_t ascii_to_keycode_lut[0x80]; |
| 210 | void send_string(const char *str); | 211 | void send_string(const char *str); |
| 211 | void send_string_with_delay(const char *str, uint8_t interval); | 212 | void send_string_with_delay(const char *str, uint8_t interval); |
