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:
commit
2373640881
|
@ -201,7 +201,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