Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird Ctrl-J behavior
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Weird Ctrl-J behavior
Miscellaneous
Thread ID:
00729486
Message ID:
00729486
Views:
84
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
Next
Reply
Map
View

Click here to load this message in the networking platform