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

This commit is contained in:
Andrew Beresford 2014-11-07 10:55:31 +00:00 committed by Andrew Beresford
parent fc6b78b8dd
commit a81c8905fb
1 changed files with 2 additions and 0 deletions

View File

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