3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 /*=============================================================================
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.
16 =============================================================================*/
21 public enum ConsoleKey
29 // 0E-0F, // Undefined
35 // Kana = 0x15, // Ime Mode
36 // Hangul = 0x15, // Ime Mode
38 // Junja = 0x17, // Ime Mode
39 // Final = 0x18, // Ime Mode
40 // Hanja = 0x19, // Ime Mode
41 // Kanji = 0x19, // Ime Mode
44 // Convert = 0x1C, // Ime Mode
45 // NonConvert = 0x1D, // Ime Mode
46 // Accept = 0x1E, // Ime Mode
47 // ModeChange = 0x1F, // Ime Mode
64 D0 = 0x30, // 0 through 9
74 // 3A-40 , // Undefined
101 LeftWindows = 0x5B, // Microsoft Natural keyboard
102 RightWindows = 0x5C, // Microsoft Natural keyboard
103 Applications = 0x5D, // Microsoft Natural keyboard
105 Sleep = 0x5F, // Computer Sleep Key
146 // 88-8F, // Undefined
147 // NumberLock = 0x90,
148 // ScrollLock = 0x91,
149 // 0x92, // OEM Specific
150 // 97-9F , // Undefined
152 // RightShift = 0xA1,
153 // LeftControl = 0xA2,
154 // RightControl = 0xA3,
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, `~
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
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
202 EraseEndOfFile = 0xF9,
205 NoName = 0xFC, // Reserved