mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
Merge remote branch 'spice/usb.5' into staging
This commit is contained in:
commit
cfb41c82ab
6 changed files with 287 additions and 116 deletions
4
ui/vnc.c
4
ui/vnc.c
|
@ -1504,7 +1504,7 @@ static void do_key_event(VncState *vs, int down, int keycode, int sym)
|
|||
break;
|
||||
}
|
||||
|
||||
if (vs->vd->lock_key_sync &&
|
||||
if (down && vs->vd->lock_key_sync &&
|
||||
keycode_is_keypad(vs->vd->kbd_layout, keycode)) {
|
||||
/* If the numlock state needs to change then simulate an additional
|
||||
keypress before sending this one. This will happen if the user
|
||||
|
@ -1523,7 +1523,7 @@ static void do_key_event(VncState *vs, int down, int keycode, int sym)
|
|||
}
|
||||
}
|
||||
|
||||
if (vs->vd->lock_key_sync &&
|
||||
if (down && vs->vd->lock_key_sync &&
|
||||
((sym >= 'A' && sym <= 'Z') || (sym >= 'a' && sym <= 'z'))) {
|
||||
/* If the capslock state needs to change then simulate an additional
|
||||
keypress before sending this one. This will happen if the user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue