From 7d43324359490b28f4dfc06d20cea19f681201c0 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Wed, 18 Apr 2018 16:55:32 -0700 Subject: [PATCH] add menu key. Replaces #5989 --- common/bootcommand/pc_xt_driver.go | 1 + common/bootcommand/vnc_driver.go | 1 + website/source/partials/builders/_boot-command.html.md | 2 ++ 3 files changed, 4 insertions(+) diff --git a/common/bootcommand/pc_xt_driver.go b/common/bootcommand/pc_xt_driver.go index 6a47755d0..f23b7ffc3 100644 --- a/common/bootcommand/pc_xt_driver.go +++ b/common/bootcommand/pc_xt_driver.go @@ -67,6 +67,7 @@ func NewPCXTDriver(send SendCodeFunc, chunkSize int) *pcXTDriver { sMap["leftctrl"] = []string{"1d", "9d"} sMap["leftshift"] = []string{"2a", "aa"} sMap["leftsuper"] = []string{"e05b", "e0db"} + sMap["menu"] = []string{"e05d", "e0dd"} sMap["pagedown"] = []string{"e051", "e0d1"} sMap["pageup"] = []string{"e049", "e0c9"} sMap["return"] = []string{"1c", "9c"} diff --git a/common/bootcommand/vnc_driver.go b/common/bootcommand/vnc_driver.go index 00e6dc955..86d6497c1 100644 --- a/common/bootcommand/vnc_driver.go +++ b/common/bootcommand/vnc_driver.go @@ -60,6 +60,7 @@ func NewVNCDriver(c VNCKeyEvent) *vncDriver { sMap["leftctrl"] = 0xFFE3 sMap["leftshift"] = 0xFFE1 sMap["leftsuper"] = 0xFFEB + sMap["menu"] = 0xFF67 sMap["pagedown"] = 0xFF56 sMap["pageup"] = 0xFF55 sMap["return"] = 0xFF0D diff --git a/website/source/partials/builders/_boot-command.html.md b/website/source/partials/builders/_boot-command.html.md index 4230426cb..225cec9b8 100644 --- a/website/source/partials/builders/_boot-command.html.md +++ b/website/source/partials/builders/_boot-command.html.md @@ -23,6 +23,8 @@ command, they will be replaced by the proper key: - ` ` - Simulates pressing the page up and page down keys. +- `` - Simulates pressing the Menu key. + - ` ` - Simulates pressing the alt key. - ` ` - Simulates pressing the ctrl key.