Add 1/10th second delay between key events to VNC
This commit is contained in:
parent
fc6b78b8dd
commit
a81c8905fb
|
@ -200,7 +200,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