Commit 4caa2a11 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Lowest scan code seems to be 1, not zero.

parent 7a8431ed
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment