Skip to content

Commit

Permalink
Phone buttons support (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Jul 31, 2019
1 parent 2a9b382 commit f59bb62
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion lib/PuppeteerSharp/Input/KeyDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1592,10 +1592,56 @@ internal static class KeyDefinitions
Key = "\"",
Code = "Quote"
},
["SoftLeft"] = new KeyDefinition
{
Key = "SoftLeft",
Code = "SoftLeft",
Location = 4
},
["SoftRight"] = new KeyDefinition
{
Key = "SoftRight",
Code = "SoftRight",
Location = 4
},
["Camera"] = new KeyDefinition
{
KeyCode = 44,
Key = "Camera",
Code = "Camera",
Location = 4
},
["Call"] = new KeyDefinition
{
Key = "Call",
Code = "Call",
Location = 4
},
["EndCall"] = new KeyDefinition
{
KeyCode = 95,
Key = "EndCall",
Code = "EndCall",
Location = 4
},
["VolumeDown"] = new KeyDefinition
{
KeyCode = 182,
Key = "VolumeDown",
Code = "VolumeDown",
Location = 4
},
["VolumeUp"] = new KeyDefinition
{
KeyCode = 183,
Key = "VolumeUp",
Code = "VolumeUp",
Location = 4
}
};

internal static KeyDefinition Get(string key) => Definitions[key];

internal static bool ContainsKey(string key) => Definitions.ContainsKey(key);
}
}

0 comments on commit f59bb62

Please sign in to comment.