Predefined Accelerator Keys
There are a number of predefined accelerator keys that may be part of a Windows application project. Some of these virtual keys are for the Windows environment. Other support browsers or Unicode applications. You can use any of these keys in any accelerator.
Key |
Description |
---|---|
VK_ACCEPT |
IME accept |
VK_BROWSER_BACK |
Windows: Browser Back key |
VK_BROWSER_FAVORITES |
Windows: Browser Favorites key |
VK_BROWSER_FORWARD |
Windows: Browser Forward key |
VK_BROWSER_HOME |
Windows: Browser Start and Home key |
VK_BROWSER_REFRESH |
Windows: Browser Refresh key |
VK_BROWSER_SEARCH |
Windows: Browser Search key |
VK_BROWSER_STOP |
Windows: Browser Stop key |
VK_CONVERT |
IME convert |
VK_FINAL |
IME final mode |
VK_HANGUEL |
IME Hanguel mode (maintained for compatibility; use VK_HANGUL) |
VK_HANGUL |
IME Hangul mode |
VK_HANJA |
IME Hanja mode |
VK_JUNJA |
IME Junja mode |
VK_KANA |
IME Kana mode |
VK_KANJI |
IME Kanji mode |
VK_LAUNCH_APP1 |
Windows: Start Application 1 key |
VK_LAUNCH_APP2 |
Windows: Start Application 2 key |
VK_LAUNCH_MAIL |
Windows: Start Mail key |
VK_LAUNCH_MEDIA_SELECT |
Windows: Select Media key |
VK_LCONTROL |
Left CONTROL key |
VK_LMENU |
Left MENU key |
VK_LSHIFT |
Left SHIFT key |
VK_MEDIA_NEXT_TRACK |
Windows: Next Track key |
VK_MEDIA_PLAY_PAUSE |
Windows: Play/Pause Media key |
VK_MEDIA_PREV_TRACK |
Windows: Previous Track key |
VK_MEDIA_STOP |
Windows: Stop Media key |
VK_MODECHANGE |
IME mode change request |
VK_NONCONVERT |
IME nonconvert |
VK_OEM_1 |
Windows: For the US standard keyboard, the ';:' key |
VK_OEM_102 |
Windows: Either the angle bracket key or the backslash key on the RT 102-key keyboard |
VK_OEM_2 |
Windows: For the US standard keyboard, the '/?' key |
VK_OEM_3 |
Windows: For the US standard keyboard, the '`~' key |
VK_OEM_4 |
Windows: For the US standard keyboard, the '[{' key |
VK_OEM_5 |
Windows: For the US standard keyboard, the '\|' key |
VK_OEM_6 |
Windows: For the US standard keyboard, the ']}' key |
VK_OEM_7 |
Windows: For the US standard keyboard, the 'single-quote/double-quote' key |
VK_OEM_COMMA |
Windows: For any country/region, the ',' key |
VK_OEM_MINUS |
Windows: For any country/region, the '-' key |
VK_OEM_PERIOD |
Windows: For any country/region, the '.' key |
VK_OEM_PLUS |
Windows: For any country/region, the '+' key |
VK_PACKET |
Windows: Used to pass Unicode characters as if they were keystrokes. |
VK_RCONTROL |
Right CONTROL key |
VK_RMENU |
Right MENU key |
VK_RSHIFT |
Right SHIFT key |
VK_SLEEP |
Computer Sleep key |
VK_VOLUME_DOWN |
Windows: Volume Down key |
VK_VOLUME_MUTE |
Windows: Volume Mute key |
VK_VOLUME_UP |
Windows: Volume Up key |
VK_XBUTTON1 |
Windows: X1 mouse button |
VK_XBUTTON2 |
Windows: X2 mouse button |
For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.
Requirements
Win32