Skip to content

Commit

Permalink
resolve losing shift key issue after L2 input
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas-commits committed Jan 12, 2021
1 parent 6dcc91a commit e7d05cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/keyboard/NeoReportParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,13 @@ void NeoReportParser::OnKeyUp(uint8_t mod, uint8_t key) {
Keyboard.release(KeyboardKeycode(sq.modifier));
}

//restore modifiers
if(neoModifiers.bmLeftShift){
Keyboard.press(KeyboardKeycode(KEY_LEFT_SHIFT));
} else if(neoModifiers.bmRightShift){
Keyboard.press(KeyboardKeycode(KEY_RIGHT_SHIFT));
}

activeSequence = nullptr;

} else { //otherwise just release the actual key
Expand Down

0 comments on commit e7d05cc

Please sign in to comment.