|
|
@ -830,11 +830,14 @@ check_keysa(void)
|
|
|
|
void
|
|
|
|
void
|
|
|
|
sendDownUpKeyEvent(int type, int x_scancode)
|
|
|
|
sendDownUpKeyEvent(int type, int x_scancode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* if type is keydown, send keydown + keyup */
|
|
|
|
/* if type is keydown, send keyup + keydown */
|
|
|
|
/* this allows us to ignore keyup events */
|
|
|
|
|
|
|
|
if (type == KeyPress)
|
|
|
|
if (type == KeyPress)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
rdpEnqueueKey(KeyRelease, x_scancode);
|
|
|
|
rdpEnqueueKey(KeyPress, x_scancode);
|
|
|
|
rdpEnqueueKey(KeyPress, x_scancode);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
rdpEnqueueKey(KeyRelease, x_scancode);
|
|
|
|
rdpEnqueueKey(KeyRelease, x_scancode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|