diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-02-01 15:21:23 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-02-01 15:21:23 -0600 |
commit | cfb41c82ab9c468e599d3603ffcebeb81b6577ca (patch) | |
tree | c29d87265f8330b05142e25b91d6c44cd161c70e /ui | |
parent | e54b7f5256659dddaf6b5c021847859829d7ebd7 (diff) | |
parent | ea87e95f8fda609fa665c2abd33c30ae65e6fae2 (diff) |
Merge remote branch 'spice/usb.5' into staging
Diffstat (limited to 'ui')
-rw-r--r-- | ui/vnc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |