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

Web ActiveX event information Event Name: KeyDown

Argument

Description

Key

Number.

Shift

Number. A value that is the sum of the values of the modifier keys the user pressed. Values are:

  • 1 Shift key

  • 2 Ctrl key

  • 4 Alt key

Returns

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