mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 12:32:52 +00:00
Fix windows keyboard handling when ToUnicode fails.
Introduced in the cumbersome commit 27ba60479762c2582868bd41a135b00cb18bc2e7.
This commit is contained in:
parent
b1299d7576
commit
e55b757aad
@ -132,9 +132,6 @@ void _al_win_kbd_handle_key_press(int scode, int vcode, BOOL repeated)
|
||||
if (!GetKeyboardState(&ks[0]))
|
||||
ccode = 0; /* shound't really happen */
|
||||
else if (ToUnicode(vcode, scode, ks, buf, 8, 0) == 1)
|
||||
if (ToUnicode(vcode, scode, ks, buf, 8, 0) == 1)
|
||||
|
||||
if (ToUnicode(vcode, scode, ks, buf, 8, 0) == 1)
|
||||
ccode = buf[0];
|
||||
else
|
||||
ccode = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user