Skip to content

Commit

Permalink
Merge pull request elfmz#2542 from omilevskyi/fix/ConsoleInput
Browse files Browse the repository at this point in the history
ConsoleInput: fix crash when dot is pressed in cyrillic layout
  • Loading branch information
elfmz authored Dec 3, 2024
2 parents 74073d9 + 7be0aa2 commit d7e4612
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 d7e4612

Please sign in to comment.