Skip to content

Commit

Permalink
modify key event logic to fix ctrl+space not being sent (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgauth committed Mar 2, 2022
1 parent 4458bbc commit a3023c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/win32/win32compat/tncon.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ ReadConsoleForTermEmul(HANDLE hInput, char *destin, int destinlen)
}

if (isConsoleVTSeqAvailable) {
if (inputRecord.Event.KeyEvent.uChar.UnicodeChar != L'\0') {
if (inputRecord.Event.KeyEvent.uChar.UnicodeChar != L'\0' || inputRecord.Event.KeyEvent.wVirtualScanCode == 0) {
n = WideCharToMultiByte(
CP_UTF8,
0,
Expand Down

0 comments on commit a3023c2

Please sign in to comment.