Initial commit
[mono.git] / mcs / class / referencesource / mscorlib / system / consolekey.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 /*=============================================================================
7 **
8 ** Class: ConsoleKey
9 **
10 **
11 ** Purpose: This enumeration represents characters returned from a keyboard.
12 **          The list is derived from a list of Windows virtual key codes,
13 **          and is very similar to the Windows Forms Keys class.
14 **
15 **
16 =============================================================================*/
17
18 namespace System {
19
20     [Serializable]
21     public enum ConsoleKey
22     {
23         Backspace  = 0x8,
24         Tab = 0x9,
25         // 0xA,  // Reserved
26         // 0xB,  // Reserved
27         Clear = 0xC,
28         Enter = 0xD,
29         // 0E-0F,  // Undefined
30         // SHIFT = 0x10,
31         // CONTROL = 0x11,
32         // Alt = 0x12,
33         Pause = 0x13,
34         // CAPSLOCK = 0x14,
35         // Kana = 0x15,  // Ime Mode
36         // Hangul = 0x15,  // Ime Mode
37         // 0x16,  // Undefined
38         // Junja = 0x17,  // Ime Mode
39         // Final = 0x18,  // Ime Mode
40         // Hanja = 0x19,  // Ime Mode
41         // Kanji = 0x19,  // Ime Mode
42         // 0x1A,  // Undefined
43         Escape = 0x1B,
44         // Convert = 0x1C,  // Ime Mode
45         // NonConvert = 0x1D,  // Ime Mode
46         // Accept = 0x1E,  // Ime Mode
47         // ModeChange = 0x1F,  // Ime Mode
48         Spacebar = 0x20,
49         PageUp = 0x21,
50         PageDown = 0x22,
51         End = 0x23,
52         Home = 0x24,
53         LeftArrow = 0x25,
54         UpArrow = 0x26,
55         RightArrow = 0x27,
56         DownArrow = 0x28,
57         Select = 0x29,
58         Print = 0x2A,
59         Execute = 0x2B,
60         PrintScreen = 0x2C,
61         Insert = 0x2D,
62         Delete = 0x2E,
63         Help = 0x2F,
64         D0 = 0x30,  // 0 through 9
65         D1 = 0x31,
66         D2 = 0x32,
67         D3 = 0x33,
68         D4 = 0x34,
69         D5 = 0x35,
70         D6 = 0x36,
71         D7 = 0x37,
72         D8 = 0x38,
73         D9 = 0x39,
74         // 3A-40 ,  // Undefined
75         A = 0x41,
76         B = 0x42,
77         C = 0x43,
78         D = 0x44,
79         E = 0x45,
80         F = 0x46,
81         G = 0x47,
82         H = 0x48,
83         I = 0x49,
84         J = 0x4A,
85         K = 0x4B,
86         L = 0x4C,
87         M = 0x4D,
88         N = 0x4E,
89         O = 0x4F,
90         P = 0x50,
91         Q = 0x51,
92         R = 0x52,
93         S = 0x53,
94         T = 0x54,
95         U = 0x55,
96         V = 0x56,
97         W = 0x57,
98         X = 0x58,
99         Y = 0x59,
100         Z = 0x5A,
101         LeftWindows = 0x5B,  // Microsoft Natural keyboard
102         RightWindows = 0x5C,  // Microsoft Natural keyboard
103         Applications = 0x5D,  // Microsoft Natural keyboard
104         // 5E ,  // Reserved
105         Sleep = 0x5F,  // Computer Sleep Key
106         NumPad0 = 0x60,
107         NumPad1 = 0x61,
108         NumPad2 = 0x62,
109         NumPad3 = 0x63,
110         NumPad4 = 0x64,
111         NumPad5 = 0x65,
112         NumPad6 = 0x66,
113         NumPad7 = 0x67,
114         NumPad8 = 0x68,
115         NumPad9 = 0x69,
116         Multiply = 0x6A,
117         Add = 0x6B,
118         Separator = 0x6C,
119         Subtract = 0x6D,
120         Decimal = 0x6E,
121         Divide = 0x6F,
122         F1 = 0x70,
123         F2 = 0x71,
124         F3 = 0x72,
125         F4 = 0x73,
126         F5 = 0x74,
127         F6 = 0x75,
128         F7 = 0x76,
129         F8 = 0x77,
130         F9 = 0x78,
131         F10 = 0x79,
132         F11 = 0x7A,
133         F12 = 0x7B,
134         F13 = 0x7C,
135         F14 = 0x7D,
136         F15 = 0x7E,
137         F16 = 0x7F,
138         F17 = 0x80,
139         F18 = 0x81,
140         F19 = 0x82,
141         F20 = 0x83,
142         F21 = 0x84,
143         F22 = 0x85,
144         F23 = 0x86,
145         F24 = 0x87,
146         // 88-8F,  // Undefined
147         // NumberLock = 0x90,
148         // ScrollLock = 0x91,
149         // 0x92,  // OEM Specific
150         // 97-9F ,  // Undefined
151         // LeftShift = 0xA0,
152         // RightShift = 0xA1,
153         // LeftControl = 0xA2,
154         // RightControl = 0xA3,
155         // LeftAlt = 0xA4,
156         // RightAlt = 0xA5,
157         BrowserBack = 0xA6,  // Windows 2000/XP
158         BrowserForward = 0xA7,  // Windows 2000/XP
159         BrowserRefresh = 0xA8,  // Windows 2000/XP
160         BrowserStop = 0xA9,  // Windows 2000/XP
161         BrowserSearch = 0xAA,  // Windows 2000/XP
162         BrowserFavorites = 0xAB,  // Windows 2000/XP
163         BrowserHome = 0xAC,  // Windows 2000/XP
164         VolumeMute = 0xAD,  // Windows 2000/XP
165         VolumeDown = 0xAE,  // Windows 2000/XP
166         VolumeUp = 0xAF,  // Windows 2000/XP
167         MediaNext = 0xB0,  // Windows 2000/XP
168         MediaPrevious = 0xB1,  // Windows 2000/XP
169         MediaStop = 0xB2,  // Windows 2000/XP
170         MediaPlay = 0xB3,  // Windows 2000/XP
171         LaunchMail = 0xB4,  // Windows 2000/XP
172         LaunchMediaSelect = 0xB5,  // Windows 2000/XP
173         LaunchApp1 = 0xB6,  // Windows 2000/XP
174         LaunchApp2 = 0xB7,  // Windows 2000/XP
175         // B8-B9,  // Reserved
176         Oem1 = 0xBA,  // Misc characters, varies by keyboard. For US standard, ;:
177         OemPlus = 0xBB,  // Misc characters, varies by keyboard. For US standard, +
178         OemComma = 0xBC,  // Misc characters, varies by keyboard. For US standard, ,
179         OemMinus = 0xBD,  // Misc characters, varies by keyboard. For US standard, -
180         OemPeriod = 0xBE,  // Misc characters, varies by keyboard. For US standard, .
181         Oem2 = 0xBF,  // Misc characters, varies by keyboard. For US standard, /?
182         Oem3 = 0xC0,  // Misc characters, varies by keyboard. For US standard, `~
183         // 0xC1,  // Reserved
184         // D8-DA,  // Unassigned
185         Oem4 = 0xDB,  // Misc characters, varies by keyboard. For US standard, [{
186         Oem5 = 0xDC,  // Misc characters, varies by keyboard. For US standard, \|
187         Oem6 = 0xDD,  // Misc characters, varies by keyboard. For US standard, ]}
188         Oem7 = 0xDE,  // Misc characters, varies by keyboard. For US standard,
189         Oem8 = 0xDF,  // Used for miscellaneous characters; it can vary by keyboard
190         // 0xE0,  // Reserved
191         // 0xE1,  // OEM specific
192         Oem102 = 0xE2,  // Win2K/XP: Either angle or backslash on RT 102-key keyboard
193         // 0xE3,  // OEM specific
194         Process = 0xE5,  // Windows: IME Process Key
195         // 0xE6,  // OEM specific
196         Packet = 0xE7,  // Win2K/XP: Used to pass Unicode chars as if keystrokes
197         // 0xE8,  // Unassigned
198         // 0xE9,  // OEM specific
199         Attention = 0xF6,
200         CrSel = 0xF7,
201         ExSel = 0xF8,
202         EraseEndOfFile = 0xF9,
203         Play = 0xFA,
204         Zoom = 0xFB,
205         NoName = 0xFC,  // Reserved
206         Pa1 = 0xFD,
207         OemClear = 0xFE,
208     }
209 }