Fixes the bug of additional characters when mod key is released before the other key

This commit is contained in:
Robert Csordas
2016-11-14 22:09:33 +01:00
parent 1d2f35dfe9
commit 5cf1da0cfe
3 changed files with 26 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ void usbKeyboadTask(){
readLeftKeys(leftKeyStates);
uint8_t modifierState = getModifierState(leftKeyStates, keyMatrix.keyStates);
clearKeymasks(leftKeyStates, keyMatrix.keyStates);
int scancodeIdx = 0;
for (uint8_t keyId=0; keyId<KEYBOARD_MATRIX_COLS_NUM*KEYBOARD_MATRIX_ROWS_NUM; keyId++) {