Merge pull request #1443 from rickard-von-essen/prl_nav_keys
builder/parallels: Added some navigation keys in "boot_command". Fixes [GH-1442]
This commit is contained in:
commit
07e11f27ec
|
@ -2,13 +2,14 @@ package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/mitchellh/multistep"
|
|
||||||
"github.com/mitchellh/packer/packer"
|
|
||||||
"log"
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"unicode"
|
"unicode"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
|
"github.com/mitchellh/multistep"
|
||||||
|
"github.com/mitchellh/packer/packer"
|
||||||
)
|
)
|
||||||
|
|
||||||
const KeyLeftShift uint32 = 0xFFE1
|
const KeyLeftShift uint32 = 0xFFE1
|
||||||
|
@ -162,6 +163,17 @@ func scancodes(message string) []string {
|
||||||
special["<return>"] = []string{"1c", "9c"}
|
special["<return>"] = []string{"1c", "9c"}
|
||||||
special["<tab>"] = []string{"0f", "8f"}
|
special["<tab>"] = []string{"0f", "8f"}
|
||||||
|
|
||||||
|
special["<up>"] = []string{"48", "c8"}
|
||||||
|
special["<down>"] = []string{"50", "d0"}
|
||||||
|
special["<left>"] = []string{"4b", "cb"}
|
||||||
|
special["<right>"] = []string{"4d", "cd"}
|
||||||
|
special["<spacebar>"] = []string{"39", "b9"}
|
||||||
|
special["<insert>"] = []string{"52", "d2"}
|
||||||
|
special["<home>"] = []string{"47", "c7"}
|
||||||
|
special["<end>"] = []string{"4f", "cf"}
|
||||||
|
special["<pageUp>"] = []string{"49", "c9"}
|
||||||
|
special["<pageDown>"] = []string{"51", "d1"}
|
||||||
|
|
||||||
shiftedChars := "!@#$%^&*()_+{}:\"~|<>?"
|
shiftedChars := "!@#$%^&*()_+{}:\"~|<>?"
|
||||||
|
|
||||||
scancodeIndex := make(map[string]uint)
|
scancodeIndex := make(map[string]uint)
|
||||||
|
|
Loading…
Reference in New Issue