Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
4/8/2010
An accelerator allows the user to activate a menu item when the focus is anywhere in the application. The accelerator is often activated by a key combination, such as CTRL+C for copying.
One of the accelerators, the MENU key, replaces the classic Control key.
The keyboard driver needs to post the following sequence of messages:
- If the MENU button is pressed, send (VK_CONTROL, down).
- If the MENU button is released and no chorded keys are
detected, send
- (VK_CONTROL, up)
- (VK_APP, down)
- (VK_APP, up)
- (VK_CONTROL, up)
- If a generic key K is pressed while the MENU button is down
then send (VK_k, down), where VK_k is the associated virtual key.
- If the key K is released while the MENU button is down, then
send (VK_k, up).
- If the MENU key is released send VK_CONTROL, UP.
Note that not all Windows Mobile devices support accelerator keys, especially devices with 9–key keyboards.