Add 1/10th second delay between key events to VNC for QEMU

This commit is contained in:
Andrew Dahl 2015-07-08 16:55:25 -05:00
parent da749e2470
commit 1f6137e636
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)