Merge pull request #2415 from DrewDahl/fix-qemu-vnc-missed-keys

Add 1/10th second delay between key events to VNC for QEMU
This commit is contained in:
Chris Bednarski 2015-08-03 15:57:52 -07:00
commit cabbe007dd
1 changed files with 2 additions and 0 deletions

View File

@ -177,7 +177,9 @@ func vncSendString(c *vnc.ClientConn, original string) {
}
c.KeyEvent(keyCode, true)
time.Sleep(time.Second/10)
c.KeyEvent(keyCode, false)
time.Sleep(time.Second/10)
if keyShift {
c.KeyEvent(KeyLeftShift, false)