Skip to content

Commit

Permalink
Fix some unicode character keys
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Nov 7, 2017
1 parent 895aa62 commit 52c292a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Model01-Firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,16 @@ static void commaSemicolonMacro(uint8_t keyState) {

static void unicode(uint32_t lower, uint32_t upper, uint8_t keyState) {
if (keyToggledOn(keyState)) {
bool shifted = (
if (
kaleidoscope::hid::wasModifierKeyActive(Key_LeftShift) ||
kaleidoscope::hid::wasModifierKeyActive(Key_RightShift)
);
Unicode.type(shifted ? upper : lower);
) {
kaleidoscope::hid::releaseKey(Key_LeftShift);
kaleidoscope::hid::releaseKey(Key_RightShift);
Unicode.type(upper);
} else {
Unicode.type(lower);
}
}
}

Expand Down

0 comments on commit 52c292a

Please sign in to comment.