From efa401e4d2001bb542e7fd260615546cb70b7cae Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Sun, 15 Sep 2013 23:18:55 -0700 Subject: [PATCH] Fix scancode comment concerning key release According to the scancode reference, the release key code is generated by adding `0x80` to the key press code, not `0x81`. --- builder/virtualbox/step_type_boot_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/virtualbox/step_type_boot_command.go b/builder/virtualbox/step_type_boot_command.go index e5fb442ea..c869cedad 100644 --- a/builder/virtualbox/step_type_boot_command.go +++ b/builder/virtualbox/step_type_boot_command.go @@ -99,7 +99,7 @@ func scancodes(message string) []string { // // Scancodes are recorded here in pairs. The first entry represents // the key press and the second entry represents the key release and is - // derived from the first by the addition of 0x81. + // derived from the first by the addition of 0x80. special := make(map[string][]string) special[""] = []string{"0e", "8e"} special[""] = []string{"53", "d3"}