ObjectDCL Banner

OnKeyUp Event

Description

Indicates that the user released a pressed key.

Parameters

sChar
String describing the character that was released.
nRepeatCount
Integer describing the number of types the character was repeated while pressed.
nFlags
Integer describing the keyboard shortcut modifiers: control, alt and shift. See Microsoft documentation for details.

AutoLISP Syntax

Each control that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnKeyUp 
                 (sChar [as String] 
                  nRepeatCount [as Integer] 
                  nFlags [as Integer] /)
     
)

Applies For

ListView, PictureBox, SlideView, TextBox.

Example

CopyCode imageCopy Code
; React to the key being released
(princ c:MyForm_MyControl_OnKeyUp
                 (sChar nRepeatCount nFlags /)
     (princ "OnKeyUp(")
     (princ sChar)
     (princ ",")
     (princ nRepeatCount)
     (princ ", ")
     (princ nFlags)
     (princ ")\n")
)

See Also

OnKeyDown