1+ namespace PuppeteerSharp . Input
2+ {
3+ public class Key
4+ {
5+ public string Value { get ; }
6+ private Key ( string value ) => Value = value ;
7+
8+ public static readonly Key Cancel = new Key ( "Cancel" ) ;
9+ public static readonly Key Help = new Key ( "Help" ) ;
10+ public static readonly Key Backspace = new Key ( "Backspace" ) ;
11+ public static readonly Key Tab = new Key ( "Tab" ) ;
12+ public static readonly Key Clear = new Key ( "Clear" ) ;
13+ public static readonly Key Enter = new Key ( "Enter" ) ;
14+ public static readonly Key Shift = new Key ( "Shift" ) ;
15+ public static readonly Key Control = new Key ( "Control" ) ;
16+ public static readonly Key Alt = new Key ( "Alt" ) ;
17+ public static readonly Key Pause = new Key ( "Pause" ) ;
18+ public static readonly Key CapsLock = new Key ( "CapsLock" ) ;
19+ public static readonly Key Escape = new Key ( "Escape" ) ;
20+ public static readonly Key Convert = new Key ( "Convert" ) ;
21+ public static readonly Key NonConvert = new Key ( "NonConvert" ) ;
22+ public static readonly Key Accept = new Key ( "Accept" ) ;
23+ public static readonly Key ModeChange = new Key ( "ModeChange" ) ;
24+ public static readonly Key PageUp = new Key ( "PageUp" ) ;
25+ public static readonly Key PageDown = new Key ( "PageDown" ) ;
26+ public static readonly Key End = new Key ( "End" ) ;
27+ public static readonly Key Home = new Key ( "Home" ) ;
28+ public static readonly Key ArrowLeft = new Key ( "ArrowLeft" ) ;
29+ public static readonly Key ArrowUp = new Key ( "ArrowUp" ) ;
30+ public static readonly Key ArrowRight = new Key ( "ArrowRight" ) ;
31+ public static readonly Key ArrowDown = new Key ( "ArrowDown" ) ;
32+ public static readonly Key Select = new Key ( "Select" ) ;
33+ public static readonly Key Print = new Key ( "Print" ) ;
34+ public static readonly Key Execute = new Key ( "Execute" ) ;
35+ public static readonly Key PrintScreen = new Key ( "PrintScreen" ) ;
36+ public static readonly Key Insert = new Key ( "Insert" ) ;
37+ public static readonly Key Delete = new Key ( "Delete" ) ;
38+ public static readonly Key CloseParentheses = new Key ( ")" ) ;
39+ public static readonly Key ExclamationMark = new Key ( "!" ) ;
40+ public static readonly Key AtSign = new Key ( "@" ) ;
41+ public static readonly Key NumberSign = new Key ( "#" ) ;
42+ public static readonly Key DollarSign = new Key ( "$" ) ;
43+ public static readonly Key Percent = new Key ( "%" ) ;
44+ public static readonly Key Caret = new Key ( "^" ) ;
45+ public static readonly Key Ampersand = new Key ( "&" ) ;
46+ public static readonly Key Asterisk = new Key ( "*" ) ;
47+ public static readonly Key OpenParentheses = new Key ( "(" ) ;
48+ public static readonly Key Meta = new Key ( "Meta" ) ;
49+ public static readonly Key ContextMenu = new Key ( "ContextMenu" ) ;
50+ public static readonly Key F1 = new Key ( "F1" ) ;
51+ public static readonly Key F2 = new Key ( "F2" ) ;
52+ public static readonly Key F3 = new Key ( "F3" ) ;
53+ public static readonly Key F4 = new Key ( "F4" ) ;
54+ public static readonly Key F5 = new Key ( "F5" ) ;
55+ public static readonly Key F6 = new Key ( "F6" ) ;
56+ public static readonly Key F7 = new Key ( "F7" ) ;
57+ public static readonly Key F8 = new Key ( "F8" ) ;
58+ public static readonly Key F9 = new Key ( "F9" ) ;
59+ public static readonly Key F10 = new Key ( "F10" ) ;
60+ public static readonly Key F11 = new Key ( "F11" ) ;
61+ public static readonly Key F12 = new Key ( "F12" ) ;
62+ public static readonly Key F13 = new Key ( "F13" ) ;
63+ public static readonly Key F14 = new Key ( "F14" ) ;
64+ public static readonly Key F15 = new Key ( "F15" ) ;
65+ public static readonly Key F16 = new Key ( "F16" ) ;
66+ public static readonly Key F17 = new Key ( "F17" ) ;
67+ public static readonly Key F18 = new Key ( "F18" ) ;
68+ public static readonly Key F19 = new Key ( "F19" ) ;
69+ public static readonly Key F20 = new Key ( "F20" ) ;
70+ public static readonly Key F21 = new Key ( "F21" ) ;
71+ public static readonly Key F22 = new Key ( "F22" ) ;
72+ public static readonly Key F23 = new Key ( "F23" ) ;
73+ public static readonly Key F24 = new Key ( "F24" ) ;
74+ public static readonly Key NumLock = new Key ( "NumLock" ) ;
75+ public static readonly Key ScrollLock = new Key ( "ScrollLock" ) ;
76+ public static readonly Key AudioVolumeMute = new Key ( "AudioVolumeMute" ) ;
77+ public static readonly Key AudioVolumeDown = new Key ( "AudioVolumeDown" ) ;
78+ public static readonly Key AudioVolumeUp = new Key ( "AudioVolumeUp" ) ;
79+ public static readonly Key MediaTrackNext = new Key ( "MediaTrackNext" ) ;
80+ public static readonly Key MediaTrackPrevious = new Key ( "MediaTrackPrevious" ) ;
81+ public static readonly Key MediaStop = new Key ( "MediaStop" ) ;
82+ public static readonly Key MediaPlayPause = new Key ( "MediaPlayPause" ) ;
83+ public static readonly Key Semicolon = new Key ( ";" ) ;
84+ public static readonly Key Comma = new Key ( "," ) ;
85+ public static readonly Key EqualsSign = new Key ( "=" ) ;
86+ public static readonly Key PlusSign = new Key ( "+" ) ;
87+ public static readonly Key LesserThan = new Key ( "<" ) ;
88+ public static readonly Key MinusSign = new Key ( "-" ) ;
89+ public static readonly Key Underscore = new Key ( "_" ) ;
90+ public static readonly Key Period = new Key ( "." ) ;
91+ public static readonly Key GreaterThan = new Key ( ">" ) ;
92+ public static readonly Key Slash = new Key ( "/" ) ;
93+ public static readonly Key QuestionMark = new Key ( "?" ) ;
94+ public static readonly Key Backquote = new Key ( "`" ) ;
95+ public static readonly Key Tilde = new Key ( "~" ) ;
96+ public static readonly Key OpenSquareBrackets = new Key ( "[" ) ;
97+ public static readonly Key OpenBrackets = new Key ( "{" ) ;
98+ public static readonly Key Pipe = new Key ( "|" ) ;
99+ public static readonly Key CloseSquareBrackets = new Key ( "]" ) ;
100+ public static readonly Key CloseBrackets = new Key ( "}" ) ;
101+ public static readonly Key Backslash = new Key ( "\\ " ) ;
102+ public static readonly Key AltGraph = new Key ( "AltGraph" ) ;
103+ public static readonly Key Attn = new Key ( "Attn" ) ;
104+ public static readonly Key CrSel = new Key ( "CrSel" ) ;
105+ public static readonly Key ExSel = new Key ( "ExSel" ) ;
106+ public static readonly Key EraseEof = new Key ( "EraseEof" ) ;
107+ public static readonly Key Play = new Key ( "Play" ) ;
108+ public static readonly Key ZoomOut = new Key ( "ZoomOut" ) ;
109+
110+ public override string ToString ( ) => Value ;
111+ public static implicit operator string ( Key key ) => key . Value ;
112+ }
113+ }
0 commit comments