<< Click to Display Table of Contents >>
KeyPress |
KeyPress(KeyAscii)
This event occurs when an E3Browser has the keyboard focus and users press a key, which corresponds to a character that can be showed on Screen (an ANSI key, with a code indicated by the KeyAscii parameter), that is, this event occurs when any of the following keys is pressed:
•Any keyboard character that can be printed
•The CTRL key combined with any standard alphabet character
•The CTRL key combined with any special character
•The BACKSPACE key
•The ESC key
This event does not occur in the following conditions:
•By pressing the TAB key
•By pressing the ENTER key
•By pressing the DEL key, because this key is not ANSI standard
•By pressing keyboard arrow keys
•When a key changes the focus from one object to another
While users press a key that produces an ANSI code, an E3Browser repeatedly receives the KeyDown event and this event. When users release that key, a KeyUp event occurs. To monitor the physical status of a keyboard or to handle keys not recognized by this event, such as function keys or browsing keys, use the KeyDown and KeyUp events.
NOTE |
For a list with all key codes available for the KeyAscii parameter, please check article Keys Enum on Microsoft Learn. |