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))]
37 [Editor ("System.Windows.Forms.Design.ShortcutKeysEditor, " + Consts.AssemblySystem_Design,
38 "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
46 XButton1 = 0x00000005,
47 XButton2 = 0x00000006,
50 LineFeed = 0x0000000A,
54 ShiftKey = 0x00000010,
55 ControlKey = 0x00000011,
58 CapsLock = 0x00000014,
60 KanaMode = 0x00000015,
61 HanguelMode = 0x00000015,
62 HangulMode = 0x00000015,
63 JunjaMode = 0x00000017,
64 FinalMode = 0x00000018,
65 KanjiMode = 0x00000019,
66 HanjaMode = 0x00000019,
68 IMEConvert = 0x0000001C,
69 IMENonconvert = 0x0000001D,
70 IMEAceept = 0x0000001E,
71 IMEModeChange = 0x0000001F,
75 PageDown = 0x00000022,
86 PrintScreen = 0x0000002C,
87 Snapshot = 0x0000002C,
130 NumPad0 = 0x00000060,
131 NumPad1 = 0x00000061,
132 NumPad2 = 0x00000062,
133 NumPad3 = 0x00000063,
134 NumPad4 = 0x00000064,
135 NumPad5 = 0x00000065,
136 NumPad6 = 0x00000066,
137 NumPad7 = 0x00000067,
138 NumPad8 = 0x00000068,
139 NumPad9 = 0x00000069,
140 Multiply = 0x0000006A,
142 Separator = 0x0000006C,
143 Subtract = 0x0000006D,
144 Decimal = 0x0000006E,
170 NumLock = 0x00000090,
172 LShiftKey = 0x000000A0,
173 RShiftKey = 0x000000A1,
174 LControlKey = 0x000000A2,
175 RControlKey = 0x000000A3,
178 BrowserBack = 0x000000A6,
179 BrowserForward = 0x000000A7,
180 BrowserRefresh = 0x000000A8,
181 BrowserStop = 0x000000A9,
182 BrowserSearch = 0x000000AA,
183 BrowserFavorites= 0x000000AB,
184 BrowserHome = 0x000000AC,
185 VolumeMute = 0x000000AD,
186 VolumeDown = 0x000000AE,
187 VolumeUp = 0x000000AF,
188 MediaNextTrack = 0x000000B0,
189 MediaPreviousTrack= 0x000000B1,
190 MediaStop = 0x000000B2,
191 MediaPlayPause = 0x000000B3,
192 LaunchMail = 0x000000B4,
193 SelectMedia = 0x000000B5,
194 LaunchApplication1= 0x000000B6,
195 LaunchApplication2= 0x000000B7,
196 OemSemicolon = 0x000000BA,
197 Oemplus = 0x000000BB,
198 Oemcomma = 0x000000BC,
199 OemMinus = 0x000000BD,
200 OemPeriod = 0x000000BE,
201 OemQuestion = 0x000000BF,
202 Oemtilde = 0x000000C0,
203 OemOpenBrackets = 0x000000DB,
204 OemPipe = 0x000000DC,
205 OemCloseBrackets= 0x000000DD,
206 OemQuotes = 0x000000DE,
208 OemBackslash = 0x000000E2,
209 ProcessKey = 0x000000E5,
213 EraseEof = 0x000000F9,
218 OemClear = 0x000000FE,
219 KeyCode = 0x0000FFFF,
221 Control = 0x00020000,
223 Modifiers = unchecked((int)0xFFFF0000),
225 IMEAccept = 0x0000001E,