Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 39 additions & 27 deletions bootcommand/boot_command.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions bootcommand/boot_command.pigeon
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ ExprStart = "<"
SpecialKey = "bs"i / "del"i / "enter"i / "esc"i / "f10"i / "f11"i / "f12"i
/ "f1"i / "f2"i / "f3"i / "f4"i / "f5"i / "f6"i / "f7"i / "f8"i / "f9"i
/ "return"i / "tab"i / "up"i / "down"i / "spacebar"i / "insert"i / "home"i
/ "end"i / "pageUp"i / "pageDown"i / "leftAlt"i / "leftCtrl"i / "leftShift"i
/ "rightAlt"i / "rightCtrl"i / "rightShift"i / "leftSuper"i / "rightSuper"i
/ "end"i / "pageUp"i / "pageDown"i / "leftAlt"i / "leftCtrl"i / "leftMeta"i / "leftShift"i
/ "rightAlt"i / "rightCtrl"i / "rightMeta"i / "rightShift"i / "leftSuper"i / "rightSuper"i
/ "left"i / "right"i / "menu"i

NonZeroDigit = [1-9]
Expand Down
2 changes: 2 additions & 0 deletions bootcommand/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ const PackerKeyDefault = 100 * time.Millisecond
//
// - `<leftCtrl> <rightCtrl>` - Simulates pressing the ctrl key.
//
// - `<leftMeta> <rightMeta>` - Simulates pressing the Meta modifier key.
//
// - `<leftShift> <rightShift>` - Simulates pressing the shift key.
//
// - `<leftSuper> <rightSuper>` - Simulates pressing the ⌘ or Windows key.
Expand Down
2 changes: 2 additions & 0 deletions bootcommand/usb_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ func NewUSBDriver(send SendUsbScanCodes, interval time.Duration) *usbDriver {
"down": key.CodeDownArrow,
"leftalt": key.CodeLeftAlt,
"leftctrl": key.CodeLeftControl,
"leftmeta": key.CodeLeftGUI, // USB HID uses GUI for Meta
"leftshift": key.CodeLeftShift,
"rightalt": key.CodeRightAlt,
"rightctrl": key.CodeRightControl,
"rightmeta": key.CodeRightGUI, // USB HID uses GUI for Meta
"rightshift": key.CodeRightShift,
"leftsuper": key.CodeLeftGUI,
"rightsuper": key.CodeRightGUI,
Expand Down
2 changes: 2 additions & 0 deletions bootcommand/vnc_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func NewVNCDriver(c VNCKeyEvent, interval time.Duration) *vncDriver {
sMap["left"] = 0xFF51
sMap["leftalt"] = 0xFFE9
sMap["leftctrl"] = 0xFFE3
sMap["leftmeta"] = 0xFFE7
sMap["leftshift"] = 0xFFE1
sMap["leftsuper"] = 0xFFEB
sMap["menu"] = 0xFF67
Expand All @@ -72,6 +73,7 @@ func NewVNCDriver(c VNCKeyEvent, interval time.Duration) *vncDriver {
sMap["right"] = 0xFF53
sMap["rightalt"] = 0xFFEA
sMap["rightctrl"] = 0xFFE4
sMap["rightmeta"] = 0xFFE8
sMap["rightshift"] = 0xFFE2
sMap["rightsuper"] = 0xFFEC
sMap["spacebar"] = 0x020
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ command, they will be replaced by the proper key:

- `<leftCtrl> <rightCtrl>` - Simulates pressing the ctrl key.

- `<leftMeta> <rightMeta>` - Simulates pressing the Meta modifier key.

- `<leftShift> <rightShift>` - Simulates pressing the shift key.

- `<leftSuper> <rightSuper>` - Simulates pressing the ⌘ or Windows key.
Expand Down