Skip to content

Commit 3b31f63

Browse files
committed
Fix Control+Space not sent to program running in terminal
1 parent d14524c commit 3b31f63

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/host/inputBuffer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,12 @@ void InputBuffer::_HandleTerminalInputCallback(const TerminalInput::StringType&
816816

817817
for (const auto& wch : text)
818818
{
819+
if (wch == UNICODE_NULL)
820+
{
821+
// Simulates a null byte input event.
822+
_storage.push_back(SynthesizeKeyEvent(true, 1, LOBYTE(OneCoreSafeVkKeyScanW(0)), 0, wch, CTRL_PRESSED | SHIFT_PRESSED));
823+
continue;
824+
}
819825
_storage.push_back(SynthesizeKeyEvent(true, 1, 0, 0, wch, 0));
820826
}
821827

0 commit comments

Comments
 (0)