ACC2: Setting KeyCode=0 for KeyDown Does Not Ignore All KeysLast reviewed: May 28, 1997Article ID: Q120827 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. Setting KeyCode to 0 in the event procedure for a form or form control's OnKeyDown property does not trap all keys and key combinations.
STATUSThis behavior is by design.
MORE INFORMATIONSetting KeyCode to 0 causes the following keys and key combinations to be trapped:
TAB F6 F7 SHIFT+TAB SHIFT+F6 F2The following keys and key combinations are not trapped:
F1 F4 SHIFT+DEL CTRL+SHIFT+TAB CTRL+TAB ALT+TAB CTRL+C CTRL+F CTRL+H CTRL+N CTRL+O CTRL+P CTRL+S CTRL+V CTRL+X CTRL+Z CTRL+SHIFT+HOME END CTRL+ENTER BACKSPACE CTRL+INSERT SHIFT+INSERT ALT+BACKSPACE F11 F12The following keys are not trapped in the Microsoft Access Developer's Toolkit (ADT):
F11 F12 SHIFT+F12NOTE: F11 is ignored by the ADT, so there's no need to trap it. Only the F11, not F12 or SHIFT+F12, key can be trapped in the AutoKeys macro. To trap F11 with an AutoKeys Macro, follow these steps:
Steps To Reproduce Behavior
REFERENCESMicrosoft Access "Building Applications," version 2.0, Chapter 8, "Events," page 200 For more information about the KeyDown event, search for "KeyDown," and then "KeyDown, KeyUp Events" using the Microsoft Access Help menu.
|
Additional query words: keyup
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |