PRB: UP/DOWN Arrow Keys Call Click Event in Form (127005)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q127005 SYMPTOMS
Pressing the UP or DOWN arrow in a list box triggers the Click event.
CAUSE
This behavior is by design. When the arrow keys are pressed to navigate
through a list, the value associated with the list is modified. This
triggers the Click event.
RESOLUTION
If you do not want to execute the code in the Click event handler, you can
verify the value of the last keypress when the Click event is triggered. If
the LASTKEY() function returns the value of the UP or DOWN arrow keys,
issue a RETURN in your routine.
Modification Type: | Major | Last Reviewed: | 6/5/2002 |
---|
Keywords: | kbprb KB127005 |
---|
|