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:
commit
cabbe007dd
|
@ -177,7 +177,9 @@ func vncSendString(c *vnc.ClientConn, original string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
c.KeyEvent(keyCode, true)
|
c.KeyEvent(keyCode, true)
|
||||||
|
time.Sleep(time.Second/10)
|
||||||
c.KeyEvent(keyCode, false)
|
c.KeyEvent(keyCode, false)
|
||||||
|
time.Sleep(time.Second/10)
|
||||||
|
|
||||||
if keyShift {
|
if keyShift {
|
||||||
c.KeyEvent(KeyLeftShift, false)
|
c.KeyEvent(KeyLeftShift, false)
|
||||||
|
|
Loading…
Reference in New Issue