Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird Ctrl-J behavior
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00729486
Message ID:
00729493
Vues:
28
This message has been marked as the solution to the initial question of the thread.
Yep. CTRL-J = LF, interpreted as ENTER. Check INKEY() in the help file. Wierd. I am sursprised CTRL-M doesn't also do it.

>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform