Microsoft KB Archive/828964

= KeyDown Event Does Not Occur When You Press the DELETE and the ARROW Keys =

Article ID: 828964

Article Last Modified on 1/12/2006

-

APPLIES TO


 * Microsoft Office Visio Standard 2003
 * Microsoft Office Visio Professional 2003

-





SYMPTOMS
Procedures or functions that reference the KeyDown event may return unexpected behavior when you press the DELETE key or any one of the ARROW keys.



CAUSE
The KeyDown event does not occur when you press the DELETE key or one of the ARROW keys. The KeyDown event only occurs if the drawing window receives a WM_KEYDOWN message. When accelerator keys such as the DELETE key and the ARROW keys are pressed, the WM_KEYDOWN message is translated into its corresponding WM_COMMAND and the drawing window does not receive any WM_KEYDOWN messages.



WORKAROUND
To work around this behavior, you may be able to modify the procedures or the functions so that the KeyUp event is referenced instead of the KeyDown event.

Note The KeyUp event does occur when the accelerator keys such as the DELETE key and the ARROW keys are released.



STATUS
This behavior is by design.

Keywords: kbprb KB828964

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.