1
0
Fork 0

Fix Tx Bolt ghosting second character on key press (#5229)

* convert tabs to spaces

* fix #4578: don't call gemini protocol code when in bolt mode

Add missing break; statements in switch. The missing break resulted in
a fall through and an additional processing of the gemini code.
This commit is contained in:
Tobias Schulte 2019-02-24 04:32:48 +01:00 committed by Drashna Jaelre
parent 0f62383be5
commit a69e4406d4

View file

@ -184,8 +184,10 @@ bool process_steno(uint16_t keycode, keyrecord_t *record) {
switch(mode) { switch(mode) {
case STENO_MODE_BOLT: case STENO_MODE_BOLT:
update_state_bolt(keycode - QK_STENO, IS_PRESSED(record->event)); update_state_bolt(keycode - QK_STENO, IS_PRESSED(record->event));
break;
case STENO_MODE_GEMINI: case STENO_MODE_GEMINI:
update_state_gemini(keycode - QK_STENO, IS_PRESSED(record->event)); update_state_gemini(keycode - QK_STENO, IS_PRESSED(record->event));
break;
} }
// allow postprocessing hooks // allow postprocessing hooks
if (postprocess_steno_user(keycode, record, mode, chord, pressed)) { if (postprocess_steno_user(keycode, record, mode, chord, pressed)) {