Lowest scan code seems to be 1, not zero.

This commit is contained in:
Rein Klazes 1998-12-24 14:37:36 +00:00 committed by Alexandre Julliard
parent 7a8431ed69
commit 4caa2a1147

View File

@ -314,7 +314,8 @@ void KEYBOARD_HandleEvent( WND *pWnd, XKeyEvent *event )
bScan = event->keycode;
break;
}
bScan -= min_keycode; /* Windows starts from 0, X from min_keycode (8 usually) */
bScan -= min_keycode - 1; /* Windows starts from 1,
X from min_keycode (8 usually) */
TRACE(key, "bScan = 0x%02x.\n", bScan);
dwFlags = 0;