From 1f6137e6368b3e6447121bff24c0066433ad730f Mon Sep 17 00:00:00 2001 From: Andrew Dahl Date: Wed, 8 Jul 2015 16:55:25 -0500 Subject: [PATCH] Add 1/10th second delay between key events to VNC for QEMU --- builder/qemu/step_type_boot_command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/qemu/step_type_boot_command.go b/builder/qemu/step_type_boot_command.go index e42903f55..13c8622ed 100644 --- a/builder/qemu/step_type_boot_command.go +++ b/builder/qemu/step_type_boot_command.go @@ -177,7 +177,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)