Microsoft KB Archive/114141

{| = PRB: ENTER Is Disabled with SET COMPATIBLE ON =
 * width="100%"|

ID: Q114141

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6
 * Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, 2.6

SYMPTOMS
If you run a quick menu that uses CTRL+M as a shortcut key for any menu option, the ENTER key will be disabled or exhibit unexpected behavior as long as SET COMPATIBLE is ON.

CAUSE
For dBASE compatibility, ENTER has been remapped to CTRL+M. Therefore, if you are using CTRL+M as a shortcut key for a menu option, pressing ENTER will run the menu command instead.

RESOLUTION
To restore normal ENTER key functionality, you must quit and restart FoxPro. To quit FoxPro, press ALT+F4 in FoxPro for Windows, or press ALT+F to open the File menu and then press Q to choose Quit in FoxPro for MS-DOS.

NOTE: This is expected dBASE behavior.

STATUS
This behavior is by design.

Steps to Reproduce Problem
1. In the Command window, type the following command:

SET COMPATIBLE ON 2. Create a quick menu that contains only the Program and File menu pads. Save and generate the menu. 3. In the Command window, type the following command: DO .MPR 4. Return to the Command window and type the following command: Wait window "this is a test" 5. Press ENTER. The wait window will not appear, and nothing will happen. The shortcut key for the Resume option is CTRL+M. Since the Resume option is normally unavailable (dimmed), the ENTER key will be disabled.

Additional reference words: FoxDos FoxWin 2.50 2.50a 2.50b 2.60 KBCategory: kbprg kb3rdparty kbprb KBSubcategory: FxinteropGeneral
 * }