Skip to content

Commit

Permalink
Fix Control+Space not sent to program running in terminal (microsoft#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnywong committed Nov 12, 2023
1 parent d14524c commit a195939
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/host/inputBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,12 @@ void InputBuffer::_HandleTerminalInputCallback(const TerminalInput::StringType&

for (const auto& wch : text)
{
if (wch == UNICODE_NULL)
{
// Simulates a null byte input event.
_storage.push_back(SynthesizeKeyEvent(true, 1, LOBYTE(OneCoreSafeVkKeyScanW(0)), 0, wch, CTRL_PRESSED | SHIFT_PRESSED));
continue;
}
_storage.push_back(SynthesizeKeyEvent(true, 1, 0, 0, wch, 0));
}

Expand Down

0 comments on commit a195939

Please sign in to comment.