From f9cddd2e18ecaff6a08981201928472188ed9f46 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Tue, 26 Aug 2014 01:00:58 +0200 Subject: [PATCH] builder/parallels: Added some navigation keys. Fixes [GH-1442] --- .../parallels/common/step_type_boot_command.go | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/builder/parallels/common/step_type_boot_command.go b/builder/parallels/common/step_type_boot_command.go index 38c8cc5ef..440371577 100644 --- a/builder/parallels/common/step_type_boot_command.go +++ b/builder/parallels/common/step_type_boot_command.go @@ -2,13 +2,14 @@ package common import ( "fmt" - "github.com/mitchellh/multistep" - "github.com/mitchellh/packer/packer" "log" "strings" "time" "unicode" "unicode/utf8" + + "github.com/mitchellh/multistep" + "github.com/mitchellh/packer/packer" ) const KeyLeftShift uint32 = 0xFFE1 @@ -162,6 +163,17 @@ func scancodes(message string) []string { special[""] = []string{"1c", "9c"} special[""] = []string{"0f", "8f"} + special[""] = []string{"48", "c8"} + special[""] = []string{"50", "d0"} + special[""] = []string{"4b", "cb"} + special[""] = []string{"4d", "cd"} + special[""] = []string{"39", "b9"} + special[""] = []string{"52", "d2"} + special[""] = []string{"47", "c7"} + special[""] = []string{"4f", "cf"} + special[""] = []string{"49", "c9"} + special[""] = []string{"51", "d1"} + shiftedChars := "!@#$%^&*()_+{}:\"~|<>?" scancodeIndex := make(map[string]uint)