Knowledge Base

FIX: Click Event Triggered If "S" Is Used as Hot Key

Article ID: 156868

Article Last Modified on 12/14/1999


APPLIES TO


This article was previously published under Q156868

SYMPTOMS

In Visual FoxPro 5.0, if "S" is used as a hot key for a CommandButton control, pressing the Delete key while a Checkbox control is selected triggers the click event of the CommandButton.

STATUS

This problem has been fixed in Visual FoxPro 5.0a.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a form.
  2. Add a CheckBox control and a commandbutton with Caption = "\<Save", in the click event of the commandbutton, and put in the following code:
          THISFORM.Release
    						
  3. Save and run the form.
  4. Set the focus to the check box.
  5. Press the Delete key.
The \<Save command button is selected, and the form closes.

Keywords: kbbug kbfix kbvfp500afix kbui KB156868