From a81c8905fb0292d8499a529b0e93b4c168a87fea Mon Sep 17 00:00:00 2001 From: Andrew Beresford Date: Fri, 7 Nov 2014 10:55:31 +0000 Subject: [PATCH] Add 1/10th second delay between key events to VNC --- builder/vmware/common/step_type_boot_command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/vmware/common/step_type_boot_command.go b/builder/vmware/common/step_type_boot_command.go index 82e8b3e17..f67940280 100644 --- a/builder/vmware/common/step_type_boot_command.go +++ b/builder/vmware/common/step_type_boot_command.go @@ -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)