Set the detail field for DeviceKeyEvents to the keycode.
(cherry picked from commit 0c33dc152e
)
This commit is contained in:
parent
87564543d9
commit
8e5102b9f0
|
@ -446,6 +446,7 @@ GetKeyboardValuatorEvents(xEvent *events, DeviceIntPtr pDev, int type,
|
|||
kbp = (deviceKeyButtonPointer *) events;
|
||||
kbp->time = ms;
|
||||
kbp->deviceid = pDev->id;
|
||||
kbp->detail = key_code;
|
||||
if (type == KeyPress)
|
||||
kbp->type = DeviceKeyPress;
|
||||
else if (type == KeyRelease)
|
||||
|
|
Loading…
Reference in New Issue
Block a user