change the order of params for keydown/up to be more backward compatible
This commit is contained in:
parent
1875c80794
commit
47f6623d8e
@ -82,11 +82,11 @@ lib_mod_event(struct mod* mod, int msg, long param1, long param2,
|
||||
{
|
||||
case 15:
|
||||
rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SCANCODE,
|
||||
param2, param1, 0);
|
||||
param4, param3, 0);
|
||||
break;
|
||||
case 16:
|
||||
rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SCANCODE,
|
||||
param2, param1, 0);
|
||||
param4, param3, 0);
|
||||
break;
|
||||
case 17:
|
||||
rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SYNCHRONIZE,
|
||||
|
@ -241,7 +241,7 @@ lib_mod_event(struct vnc* v, int msg, long param1, long param2,
|
||||
}
|
||||
else if ((msg >= 15) && (msg <= 16)) /* key events */
|
||||
{
|
||||
key = param3;
|
||||
key = param2;
|
||||
if (key > 0)
|
||||
{
|
||||
init_stream(s, 8192);
|
||||
|
@ -1131,8 +1131,8 @@ xrdp_wm_key(struct xrdp_wm* self, int device_flags, int scan_code)
|
||||
&(self->keymap));
|
||||
if (ki != 0)
|
||||
{
|
||||
self->mm->mod->mod_event(self->mm->mod, msg, scan_code,
|
||||
device_flags, ki->sym, ki->chr);
|
||||
self->mm->mod->mod_event(self->mm->mod, msg, ki->chr, ki->sym,
|
||||
scan_code, device_flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user