modify key event logic to fix ctrl+space not being sent (#569)

This commit is contained in:
Tess Gauthier 2022-03-02 13:40:36 -05:00 committed by GitHub
parent 4458bbc132
commit a3023c2d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,