KeyPress Event


PLBCMP GUI Only

square.png Objects

 

The KeyPress event occurs when an object has the keyboard focus and the user presses and releases a key.

Note the following:

  1. The KeyPress event is referenced using an event value of ten (10). The equated label in PLBEQU.INC for this event is $KEYPRESS.

  2. An object may only get keystrokes if it has the focus.

  3. If the Event Result is zero (0), the Event Character contains the ASCII character entered.

  4. If the Event Result is not zero (0), it reflects the virtual key value and the Event Character is a blank.

  5. The Event Modifier contains a value from the following table:

  6.  

    Value

    Key Pressed

    1

    ALT

    2

    CTRL

    4

    SHIFT

 

 

See Also: EVENTREGISTER, Object Events, Object IO Instructions, Object Definitions

 



PL/B Language Reference ItemClick Event LinkClick Event