Skip to content

Commit 0485501

Browse files
committed
removed the previous changes added the changes to the input.cpp
1 parent 4b946c0 commit 0485501

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/host/input.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ void HandleGenericKeyEvent(INPUT_RECORD event, const bool generateBreak)
170170

171171
if (gci.HasActiveOutputBuffer())
172172
{
173-
gci.GetActiveOutputBuffer().SnapOnInput(keyEvent.wVirtualKeyCode);
173+
auto& buffer = gci.GetActiveOutputBuffer();
174+
175+
if (WI_IsFlagSet(buffer.OutputMode, ENABLE_VIRTUAL_TERMINAL_PROCESSING))
176+
{
177+
buffer.SnapOnInput(keyEvent.wVirtualKeyCode);
178+
}
174179
}
175180
}
176181
}

0 commit comments

Comments
 (0)