1 // Permission is hereby granted, free of charge, to any person obtaining
2 // a copy of this software and associated documentation files (the
3 // "Software"), to deal in the Software without restriction, including
4 // without limitation the rights to use, copy, modify, merge, publish,
5 // distribute, sublicense, and/or sell copies of the Software, and to
6 // permit persons to whom the Software is furnished to do so, subject to
7 // the following conditions:
9 // The above copyright notice and this permission notice shall be
10 // included in all copies or substantial portions of the Software.
12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
16 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
17 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
18 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 // Copyright (c) 2004 Novell, Inc.
23 // Peter Bartok pbartok@novell.com
29 using System.ComponentModel;
30 using System.Runtime.InteropServices;
32 namespace System.Windows.Forms {
35 [TypeConverter(typeof(KeysConverter))]
36 [Editor ("System.Windows.Forms.Design.ShortcutKeysEditor, " + Consts.AssemblySystem_Design,
37 "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
44 XButton1 = 0x00000005,
45 XButton2 = 0x00000006,
48 LineFeed = 0x0000000A,
52 ShiftKey = 0x00000010,
53 ControlKey = 0x00000011,
56 CapsLock = 0x00000014,
58 KanaMode = 0x00000015,
59 HanguelMode = 0x00000015,
60 HangulMode = 0x00000015,
61 JunjaMode = 0x00000017,
62 FinalMode = 0x00000018,
63 KanjiMode = 0x00000019,
64 HanjaMode = 0x00000019,
66 IMEConvert = 0x0000001C,
67 IMENonconvert = 0x0000001D,
68 IMEAceept = 0x0000001E,
69 IMEModeChange = 0x0000001F,
73 PageDown = 0x00000022,
84 PrintScreen = 0x0000002C,
85 Snapshot = 0x0000002C,
128 NumPad0 = 0x00000060,
129 NumPad1 = 0x00000061,
130 NumPad2 = 0x00000062,
131 NumPad3 = 0x00000063,
132 NumPad4 = 0x00000064,
133 NumPad5 = 0x00000065,
134 NumPad6 = 0x00000066,
135 NumPad7 = 0x00000067,
136 NumPad8 = 0x00000068,
137 NumPad9 = 0x00000069,
138 Multiply = 0x0000006A,
140 Separator = 0x0000006C,
141 Subtract = 0x0000006D,
142 Decimal = 0x0000006E,
168 NumLock = 0x00000090,
170 LShiftKey = 0x000000A0,
171 RShiftKey = 0x000000A1,
172 LControlKey = 0x000000A2,
173 RControlKey = 0x000000A3,
176 BrowserBack = 0x000000A6,
177 BrowserForward = 0x000000A7,
178 BrowserRefresh = 0x000000A8,
179 BrowserStop = 0x000000A9,
180 BrowserSearch = 0x000000AA,
181 BrowserFavorites= 0x000000AB,
182 BrowserHome = 0x000000AC,
183 VolumeMute = 0x000000AD,
184 VolumeDown = 0x000000AE,
185 VolumeUp = 0x000000AF,
186 MediaNextTrack = 0x000000B0,
187 MediaPreviousTrack= 0x000000B1,
188 MediaStop = 0x000000B2,
189 MediaPlayPause = 0x000000B3,
190 LaunchMail = 0x000000B4,
191 SelectMedia = 0x000000B5,
192 LaunchApplication1= 0x000000B6,
193 LaunchApplication2= 0x000000B7,
194 OemSemicolon = 0x000000BA,
195 Oemplus = 0x000000BB,
196 Oemcomma = 0x000000BC,
197 OemMinus = 0x000000BD,
198 OemPeriod = 0x000000BE,
199 OemQuestion = 0x000000BF,
200 Oemtilde = 0x000000C0,
201 OemOpenBrackets = 0x000000DB,
202 OemPipe = 0x000000DC,
203 OemCloseBrackets= 0x000000DD,
204 OemQuotes = 0x000000DE,
206 OemBackslash = 0x000000E2,
207 ProcessKey = 0x000000E5,
211 EraseEof = 0x000000F9,
216 OemClear = 0x000000FE,
217 KeyCode = 0x0000FFFF,
219 Control = 0x00020000,
221 Modifiers = unchecked((int)0xFFFF0000),
222 IMEAccept = 0x0000001E,