Merge pull request #1663 from beezly/fix-vnc-missed-keys

Add 1/10th second delay between key events to VNC
This commit is contained in:
Mitchell Hashimoto 2015-06-08 21:31:55 -07:00
commit 2373640881
1 changed files with 2 additions and 0 deletions

View File

@ -201,7 +201,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)