KeyDown

Description

Occurs for each keystroke when the user is editing in the DataWindow edit control.

PowerBuilder event information

Event ID: pbm_dwnkey

KeyDown is not a standard PowerBuilder DataWindow event. To write a script for this event, you must first define a user-defined event for the event ID pbm_dwnkey.

Argument

Description

key

Integer by value.

keyflags

UnsignedLong by value. The modifier keys that are pressed. The keyflags value is the sum of the values for all the pressed keys.

Key values are:

  • 1 -- Shift key

  • 2 -- Ctrl key

  • 3 -- Shift + Ctrl keys


Return Values

There are no special outcomes for this event. The only code is:

0 -- Continue processing