mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
Lowest scan code seems to be 1, not zero.
This commit is contained in:
parent
7a8431ed69
commit
4caa2a1147
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user