Skip to content

Commit

Permalink
WinCon : returned key code should be non-negative (unless it's ERR). …
Browse files Browse the repository at this point in the history
…This is consistent with ncurses and every other PDCurses/PDCursesMod platform.
  • Loading branch information
Bill-Gray committed Oct 1, 2022
1 parent e54d03f commit e86d9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wincon/pdckbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ static int _process_key_event(void)
#ifdef PDC_WIDE
KEV.uChar.UnicodeChar;
#else
KEV.uChar.AsciiChar;
(unsigned char)KEV.uChar.AsciiChar;
#endif
WORD vk = KEV.wVirtualKeyCode;
DWORD state = KEV.dwControlKeyState;
Expand Down

0 comments on commit e86d9c3

Please sign in to comment.