add menu key.

Replaces #5989
This commit is contained in:
Matthew Hooker 2018-04-18 16:55:32 -07:00
parent e9e27941cc
commit 7d43324359
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
3 changed files with 4 additions and 0 deletions

View File

@ -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"}

View File

@ -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

View File

@ -23,6 +23,8 @@ command, they will be replaced by the proper key:
- `<pageUp> <pageDown>` - Simulates pressing the page up and page down keys.
- `<menu>` - Simulates pressing the Menu key.
- `<leftAlt> <rightAlt>` - Simulates pressing the alt key.
- `<leftCtrl> <rightCtrl>` - Simulates pressing the ctrl key.