Skip to content

Commit e5781dd

Browse files
committed
fix(ptk): ignore special characters entered with Ctrl key combination
1 parent 493931d commit e5781dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ptk/src/windows/win32_ime.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ static void ptk_win32ime_on_char(MSG *msg, void *arg)
3535
{
3636
wchar_t text[2];
3737

38+
if (GetKeyState(VK_CONTROL) & 0x8000) {
39+
return;
40+
}
3841
text[0] = (wchar_t)msg->wParam;
3942
text[1] = 0;
4043
ptk_ime_commit(text, 2);

0 commit comments

Comments
 (0)