Skip to content

Commit

Permalink
Add missing location property to some key descriptors (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored and Meir017 committed Nov 14, 2018
1 parent 0f2f632 commit 5c999d7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lib/PuppeteerSharp/Input/KeyDefinitions.cs
Expand Up @@ -640,13 +640,15 @@ internal static class KeyDefinitions
{
KeyCode = 91,
Key = "Meta",
Code = "MetaLeft"
Code = "MetaLeft",
Location = 1
},
["MetaRight"] = new KeyDefinition
{
KeyCode = 92,
Key = "Meta",
Code = "MetaRight"
Code = "MetaRight",
Location = 2
},
["ContextMenu"] = new KeyDefinition
{
Expand Down Expand Up @@ -993,19 +995,22 @@ internal static class KeyDefinitions
{
KeyCode = 16,
Key = "Shift",
Code = "ShiftLeft"
Code = "ShiftLeft",
Location = 1
},
["Control"] = new KeyDefinition
{
KeyCode = 17,
Key = "Control",
Code = "ControlLeft"
Code = "ControlLeft",
Location = 1
},
["Alt"] = new KeyDefinition
{
KeyCode = 18,
Key = "Alt",
Code = "AltLeft"
Code = "AltLeft",
Location = 1
},
["Accept"] = new KeyDefinition
{
Expand Down Expand Up @@ -1201,7 +1206,8 @@ internal static class KeyDefinitions
{
KeyCode = 91,
Key = "Meta",
Code = "MetaLeft"
Code = "MetaLeft",
Location = 1
},
["*"] = new KeyDefinition
{
Expand Down

0 comments on commit 5c999d7

Please sign in to comment.