KeyEvent Class |
|
Namespace: VO
The KeyEvent type exposes the following members.
| Name | Description | |
|---|---|---|
| ASCIIChar |
A numeric value representing the normal ASCII code for the key that caused this KeyEvent.
| |
| KeyCode |
A constant, indicating the code for the key that was pressed:
| |
| RepeatCount |
A numeric value determining whether a user depressed a key repeatedly or held it down for an extended period of time.
| |
| System |
A logical value determining whether the Alt key was pressed at the same time as another key (TRUE if yes, FALSE if no).
|
1METHOD KeyDown(aKeyEvt) CLASS TopAppWindow 2IF(aKeyEvt:KeyCode() = KeyEnter) 3ts := SELF:TextSize('A'):Height() + 2 4oCursorPoint := Point{10,oCursorPoint:Y() - ts} 5ENDIF