diff -r c2f19aa8a584 tools/ioemu-remote/vnc.c --- a/tools/ioemu-remote/vnc.c Wed Apr 07 11:13:49 2010 +0800 +++ b/tools/ioemu-remote/vnc.c Mon May 24 13:56:22 2010 +0800 @@ -1326,6 +1326,11 @@ } break; case 0x3a: /* CapsLock */ + if(!down){ + vs->modifiers_state[keycode] ^= 1; + kbd_put_keycode(keycode | 0x80); + } + return; case 0x45: /* NumLock */ if (down) { kbd_put_keycode(keycode & 0x7f);