Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird Ctrl-J behavior
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00729486
Message ID:
00729735
Views:
25
Thanks for the clarification. Oddly, I still see it either way. Other forces seem to be at work here :-) Glad you have the fix.

>Sorry, I guess that term is ambiguous. I meant that I don't see the behavior when I run using DO FORM xxxxx, but I do see it when I call my main module and then select form xxxxx from the menu.
>
>Anyway, I found that I can suppress this behavior by turning on KeyPreview in my base form class and putting this code in KeyPress() of that same class:
LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nKeyCode = 10 AND nShiftAltCtrl = 2
>    NODEFAULT
>ENDIF
This means that users won't be able to use Ctrl-Enter to fire a default button either. In my app, that's an okay tradeoff because I really didn't want the Ctrl-J behavior.
>
>So you led me to a decent resolution here. Thanks!
>zahid
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform