Information générale
Titre:
Weird Ctrl-J behavior
In my app, when:
* focus is on a button, or
* focus is on something else but a button has DEFAULT = .T.
and the worker presses Ctrl-J, that button's Click event fires. This doesn't happen when I run a form standalone (DO FORM MyForm), but it does happen when I run the app from development mode (DO MyApp) and select the form from the menu.
What's more interesting is the call stack. When I put a SET STEP ON in the Click() method of a button fired in this manner, there's nothing in the call stack between the method that issues READ EVENTS and the button Click() method. This is different from the following situations:
* When a hotkey is specified via a menu item, there's an ON SELECTION BAR in the call stack.
* When a hotkey is specified via ON KEY LABEL, there's an ON KEY in the call stack.
I did a quick search of MSDN, but couldn't find anything. I also searched my MPR file, but I can't see anything in there that would cause this behavior. Any ideas?
zahid
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement