changed logic

This commit is contained in:
redlineo committed 2025-01-24 09:55:54 +00:00
1 parent a12f7243c9
commit 350e2833f2
3 files changed
+34 -26

No files matched your search

+4 -1
View File
@@ -7,7 +7,7 @@ uint8_t shift_tracker = 0;
void write_keycode(uint8_t up_key, uint8_t low_key, keyrecord_t *record, uint8_t readed_key[], uint8_t *count_char_key) {
if (record->event.pressed) {
if (shift_tracker == 1) {
shift_tracker = 0;
// shift_tracker = 0;
readed_key[*count_char_key] = up_key;
} else {
readed_key[*count_char_key] = low_key;
@@ -25,6 +25,9 @@ uint8_t kc_to_ascii(uint16_t keycode, keyrecord_t *record, uint8_t readed_key[],
if (record->event.pressed) {
shift_tracker = 1;
}
else {
shift_tracker = 0;
}
return 1;
break;
case KC_A: