From: girst Date: Sat, 3 Feb 2018 09:45:47 +0000 (+0100) Subject: fix issue with stuck shift when not releasing slashquesm key X-Git-Url: https://git.gir.st/tmk_keyboard.git/commitdiff_plain/e36a92358bdf337b8dcd2b7d5918c2f77ad307ff fix issue with stuck shift when not releasing slashquesm key also remove make clean statement from ./make flash --- diff --git a/keyboard/tv44/keymap_tv44.c b/keyboard/tv44/keymap_tv44.c index c1b15cab..75095b2f 100644 --- a/keyboard/tv44/keymap_tv44.c +++ b/keyboard/tv44/keymap_tv44.c @@ -75,15 +75,15 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { /* when the key is pressed without any modifiers, a slash (Shift+7) is typed; if shift is active, a question mark (Shift+ß) is typed. Minor difference to native behaviour: if shift is released while - key is still held down, more question marks are typed instead of + key is still held down, sharp Ss are typed instead of switching to slashes. */ if (record->event.pressed) { slqu_pressed = shifted?KC_MINS:KC_7; add_weak_mods(MOD_BIT(KC_LSHIFT)), send_keyboard_report(); add_key(slqu_pressed), send_keyboard_report(); + del_weak_mods(MOD_BIT(KC_LSHIFT)); } else { del_key(slqu_pressed), send_keyboard_report(); - del_weak_mods(MOD_BIT(KC_LSHIFT)), send_keyboard_report(); } break; } diff --git a/keyboard/tv44/make b/keyboard/tv44/make index db72463b..2fb88ae1 100755 --- a/keyboard/tv44/make +++ b/keyboard/tv44/make @@ -7,7 +7,8 @@ case $1 in flash) sudo dfu-programmer atmega32u4 erase sudo dfu-programmer atmega32u4 flash tv44_lufa.hex sudo dfu-programmer atmega32u4 start - make clean ;; + #make clean + ;; esac