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: 
  | 
                        
Return Values
Set the return code to affect the outcome of the event:
0 -- (Default) Accept the keystroke
1 -- Reject the keystroke


