Set the detail field for DeviceKeyEvents to the keycode.

This commit is contained in:
Peter Hutterer 2007-06-21 15:47:48 +09:30
parent 1f97a76476
commit 0c33dc152e

View File

@ -452,6 +452,7 @@ GetKeyboardValuatorEvents(EventList *events, DeviceIntPtr pDev, int type,
kbp = (deviceKeyButtonPointer *) events->event;
kbp->time = ms;
kbp->deviceid = pDev->id;
kbp->detail = key_code;
if (type == KeyPress)
kbp->type = DeviceKeyPress;
else if (type == KeyRelease)