KeyEvent.KeyCode Property | |
A constant, indicating the code for the key that was pressed:
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY KeyCode AS DWORD GET
public virtual uint KeyCode { get; }
Request Example
View SourceProperty Value
Type:
DWordA constant, indicating the code for the key that was pressed:
Remarks
One of the following constants, indicating the code for the key that was pressed:
Constant | Description |
---|
KEYALT | Alt key |
KEYARROWDOWN | Down arrow key |
KEYARROWLEFT | Left arrow key |
KEYARROWRIGHT | Right arrow key |
KEYARROWUP | Up arrow key |
KEYBACKSPACE | Backspace key |
KEYCANCEL | Cancel key |
KEYCAPSLOCK | Capitals Lock key |
KEYCONTROL | Control key |
KEYDELETE | Delete key |
KEYEND | End key |
KEYENTER | Enter key |
KEYESCAPE | Escape key |
KEYF1...KEYF16 | Function keys 1-16 |
KEYHOME | Home key |
KEYINSERT | Insert key |
KEYNUMLOCK | Numeric Lock key |
KEYPAGEDOWN | PgDn key |
KEYPAGEUP | PgUp key |
KEYPAUSE | Pause key |
KEYPRINT | Print key |
KEYRETURN | Return key |
KEYSHIFT | Shift key |
KEYSPACE | Spacebar |
KEYTAB | Tab key |
Tip |
---|
KeyEvent:KeyCode provides access to the underlying keyboard hardware. Use this property if the KeyEvent:ASCIIChar access method returns NIL. |
See Also