Skip to content

Commit

Permalink
directly send unicode char for non-dead ` and ^
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGyver83 committed Jan 31, 2021
1 parent 79b773a commit 51fdd3a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,23 +552,20 @@ bool handleLayer3SpecialCases(KBDLLHOOKSTRUCT keyInfo) {
sendChar(L'\u030A', keyInfo); // overring
return true;
case 20:
sendChar(L'^', keyInfo);
commitDeadKey(keyInfo);
sendUnicodeChar(L'^', keyInfo);
return true;
case 27:
sendChar(L'\u0337', keyInfo); // bar (diakritischer Schrägstrich)
return true;
case 31:
if (strcmp(layout, "kou") == 0 || strcmp(layout, "vou") == 0) {
sendChar(L'`', keyInfo);
commitDeadKey(keyInfo);
sendUnicodeChar(L'`', keyInfo);
return true;
}
return false;
case 48:
if (strcmp(layout, "kou") != 0 && strcmp(layout, "vou") != 0) {
sendChar(L'`', keyInfo);
commitDeadKey(keyInfo);
sendUnicodeChar(L'`', keyInfo);
return true;
}
return false;
Expand Down

0 comments on commit 51fdd3a

Please sign in to comment.