diff options
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 8ac3a57dc..f5e3b63f8 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -851,7 +851,7 @@ const bool ascii_to_shift_lut[0x80] PROGMEM = { | |||
| 851 | }; | 851 | }; |
| 852 | 852 | ||
| 853 | __attribute__ ((weak)) | 853 | __attribute__ ((weak)) |
| 854 | const bool ascii_to_alt_lut[0x80] PROGMEM = { | 854 | const bool ascii_to_altgr_lut[0x80] PROGMEM = { |
| 855 | 0, 0, 0, 0, 0, 0, 0, 0, | 855 | 0, 0, 0, 0, 0, 0, 0, 0, |
| 856 | 0, 0, 0, 0, 0, 0, 0, 0, | 856 | 0, 0, 0, 0, 0, 0, 0, 0, |
| 857 | 0, 0, 0, 0, 0, 0, 0, 0, | 857 | 0, 0, 0, 0, 0, 0, 0, 0, |
| @@ -953,16 +953,16 @@ void send_string_with_delay_P(const char *str, uint8_t interval) { | |||
| 953 | void send_char(char ascii_code) { | 953 | void send_char(char ascii_code) { |
| 954 | uint8_t keycode = pgm_read_byte(&ascii_to_keycode_lut[(uint8_t)ascii_code]); | 954 | uint8_t keycode = pgm_read_byte(&ascii_to_keycode_lut[(uint8_t)ascii_code]); |
| 955 | bool is_shifted = pgm_read_byte(&ascii_to_shift_lut[(uint8_t)ascii_code]); | 955 | bool is_shifted = pgm_read_byte(&ascii_to_shift_lut[(uint8_t)ascii_code]); |
| 956 | bool is_alted = pgm_read_byte(&ascii_to_alt_lut[(uint8_t)ascii_code]); | 956 | bool is_altgred = pgm_read_byte(&ascii_to_altgr_lut[(uint8_t)ascii_code]); |
| 957 | 957 | ||
| 958 | if (is_shifted) { | 958 | if (is_shifted) { |
| 959 | register_code(KC_LSFT); | 959 | register_code(KC_LSFT); |
| 960 | } | 960 | } |
| 961 | if (is_alted) { | 961 | if (is_altgred) { |
| 962 | register_code(KC_RALT); | 962 | register_code(KC_RALT); |
| 963 | } | 963 | } |
| 964 | tap_code(keycode); | 964 | tap_code(keycode); |
| 965 | if (is_alted) { | 965 | if (is_altgred) { |
| 966 | unregister_code(KC_RALT); | 966 | unregister_code(KC_RALT); |
| 967 | } | 967 | } |
| 968 | if (is_shifted) { | 968 | if (is_shifted) { |
