Method XbpActiveXControl():keyDown() Foundation
Default event handler for ActiveX control event "KeyDown" (DISPID_KEYDOWN).
:keyDown( <nKey>, <nShift> ) --> self
This method returns the object executing the method (self).
The event "KeyDown" (DISPID_KEYDOWN) is generated if a key is pressed by the user while an ActiveX control has the input focus. The default event handler :keyDown() transforms the numeric value in parameter <nKey> in one of the key code constants defined in APPEVENT.CH and generates the Xbase++ event xbeP_Keyboard. The event is posted to the current thread's message queue using the function PostAppEvent().
The method :keyDown() makes it possible for Xbase++ applications to react to ActiveX keyboard events as it does to normal keyboard events. All that is required to react to the event is to assign a code block to the callback slot :keyboard. Alternatively, event handling may be implemented in a method :keyboard() defined in a derived class.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.