Consultor Eletrônico



Kbase P147788: Infragistics UltraCheckEditor KeyDown event does not fire for cursor / arrow keys
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/10/2009
Status: Unverified

SYMPTOM(s):

Infragistics UltraCheckEditor KeyDown event does not fire for cursor / arrow keys

KeyDown event fires as expected using other keys

FACT(s) (Environment):

Same behaviour can be reproduced in Microsoft Visual Studio using the Infragistics UltraCheckEditor
Same behaviour can be reproduced in Microsoft Visual Studio using the Microsoft CheckBox control
KeyDown event fires as expected when using the Infragistics UltraTextEditor control and pressing cursor / arrow keys
OpenEdge 10.2A
Windows

CAUSE:

This is expected behaviour. Per the Control.KeyDown Event documentation on MSDN:

Certain keys, such as the TAB, RETURN, ESCAPE, and arrow keys are handled by controls automatically. In order to have these keys raise the KeyDown event, you must override the IsInputKey method in each control on your form. The code for the override of IsInputKey would need to determine if one of the special keys is pressed and return a value of true.

FIX:

Per the MSDN documentation, additional coding would be required to make the KeyDown event fire if a special key is pressed.
The following article provides an overview of the process but exact steps are not provided:

"Probably more than you want to know about keyboarding in Windows Forms?."