Skip to content

Commit

Permalink
Fix mouse wheel scrolling in Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Jun 16, 2023
1 parent 29614c4 commit 6fd6739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2936,7 +2936,7 @@ public char WIN32getch(void)
}
keyCount --;
// If multibyte character, return its first byte
if (currentKey.ascii != currentKey.unicode)
if (currentKey.unicode > 0x7f)
{
utf8_size = WideCharToMultiByte(CP_UTF8, 0, &currentKey.unicode, 1, &utf8, sizeof(utf8), NULL, NULL);
if (utf8_size == 0 )
Expand Down

0 comments on commit 6fd6739

Please sign in to comment.