Skip to content

Commit

Permalink
WinPort/src/ConsoleInput.cpp: fix crash when dot is pressed in cyrill…
Browse files Browse the repository at this point in the history
…ic layout
  • Loading branch information
Oleksii Milevskyi authored and Oleksii Milevskyi committed Dec 3, 2024
1 parent 1af0cec commit 7be0aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WinPort/src/ConsoleInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void ConsoleInput::Enqueue(const INPUT_RECORD *data, DWORD size)
const auto uni = data[i].Event.KeyEvent.uChar.UnicodeChar;
fprintf(stderr, "ConsoleInput::Enqueue: %s %s \"%lc\" %s, %x %x %x %x\n",
FormatKeyState(data[i].Event.KeyEvent.dwControlKeyState),
VirtualKeyNames[data[i].Event.KeyEvent.wVirtualKeyCode],
data[i].Event.KeyEvent.wVirtualKeyCode < sizeof(VirtualKeyNames) / sizeof(const char*) ? VirtualKeyNames[data[i].Event.KeyEvent.wVirtualKeyCode] : "0x00",
(uni && (uni > 0x1f)) ? uni : L'?',
data[i].Event.KeyEvent.bKeyDown ? "DOWN" : "UP",

Expand Down

0 comments on commit 7be0aa2

Please sign in to comment.