Reduce key delay to 10ms to boot times are a lot faster

This commit is contained in:
Chris Bednarski 2016-04-22 01:41:40 -07:00
parent 881ba12ab4
commit da083506f1
1 changed files with 2 additions and 2 deletions

View File

@ -361,9 +361,9 @@ func vncSendString(c *vnc.ClientConn, original string) {
// to deal with network latency and the OS responding to the keystroke.
// It is kind of arbitrary but it is better than nothing.
c.KeyEvent(keyCode, true)
time.Sleep(100 * time.Millisecond)
time.Sleep(10 * time.Millisecond)
c.KeyEvent(keyCode, false)
time.Sleep(100 * time.Millisecond)
time.Sleep(10 * time.Millisecond)
if keyShift {
c.KeyEvent(KeyLeftShift, false)