From 51fdd3a72b4f6c674e65d41cbdbf93e4e1cf4984 Mon Sep 17 00:00:00 2001 From: MaxGyver83 Date: Sun, 31 Jan 2021 13:06:29 +0100 Subject: [PATCH] directly send unicode char for non-dead ` and ^ --- src/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index 076e02f..7cd704d 100644 --- a/src/main.c +++ b/src/main.c @@ -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;