KeyPress Event
PLBCMP GUI Only
The KeyPress event occurs when an object has the keyboard focus and the user presses and releases a key.
Note the following:
The KeyPress event is referenced using an event value of ten (10). The equated label in PLBEQU.INC for this event is $KEYPRESS.
An object may only get keystrokes if it has the focus.
If the Event Result is zero (0), the Event Character contains the ASCII character entered.
If the Event Result is not zero (0), it reflects the virtual key value and the Event Character is a blank.
The Event Modifier contains a value from the following table:
|
Value |
Key Pressed |
|
1 |
ALT |
|
2 |
CTRL |
|
4 |
SHIFT |
See Also: EVENTREGISTER, Object Events, Object IO Instructions, Object Definitions
![]() |