Bugfix: ToAscii should not generate ASCII code when key-up flag is set.

This commit is contained in:
Ulrich Weigand 1999-03-10 13:28:30 +00:00 committed by Alexandre Julliard
parent 9cfeb5b88c
commit 175989dbd4

View file

@ -661,6 +661,11 @@ INT16 X11DRV_KEYBOARD_ToAscii(
TRACE(keyboard,"scanCode=0, doing nothing\n");
return 0;
}
if (scanCode & 0x8000)
{
TRACE( keyboard, "Key UP, doing nothing\n" );
return 0;
}
e.display = display;
e.keycode = 0;
e.state = 0;