From 04855018cec641052a3dbc112f5cd045723f32b6 Mon Sep 17 00:00:00 2001 From: vididvidid Date: Sat, 8 Nov 2025 14:38:12 +0530 Subject: [PATCH] removed the previous changes added the changes to the input.cpp --- src/host/input.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/host/input.cpp b/src/host/input.cpp index a924c7dae21..cfc009b3096 100644 --- a/src/host/input.cpp +++ b/src/host/input.cpp @@ -170,7 +170,12 @@ void HandleGenericKeyEvent(INPUT_RECORD event, const bool generateBreak) if (gci.HasActiveOutputBuffer()) { - gci.GetActiveOutputBuffer().SnapOnInput(keyEvent.wVirtualKeyCode); + auto& buffer = gci.GetActiveOutputBuffer(); + + if (WI_IsFlagSet(buffer.OutputMode, ENABLE_VIRTUAL_TERMINAL_PROCESSING)) + { + buffer.SnapOnInput(keyEvent.wVirtualKeyCode); + } } } }