BUG: ALT+D and SPACE Both Map to Key Code Value of 32

Last reviewed: May 6, 1997
Article ID: Q124884
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 5.0a
  • Microsoft FoxPro for Windows, version 2.6a
  • Microsoft FoxPro for MD-DOS, version 2.6a

SYMPTOMS

If code is dependent on the key combination ALT+D, the key code value returned by this combination maps to the ASCII value of 32, which is the equivalent of the Space key. Any time the space bar is pressed, code associated with ALT+D is run.

CAUSE

The ALT+D key combination is incorrectly mapped to ASCII 32.

RESOLUTION

The workarounds for this problem are to avoid the use of ALT+D as a key combination, or use CTRL+D or designate some other key combination as a hot key.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

Create and run a program containing the following code:

   CLEAR
   @ 0,0 SAY "Press the key or key combination to evaluate:"
   @ 1,0 SAY " "
   =INKEY(20)
   ? LASTKEY()


Additional query words: access key
Keywords : buglist2.60a buglist5.00 FoxDos FoxWin FxprgGeneral vfpbug5.0a kbbuglist
Version : 2.6a 3.0 5.0 5.0a
Platform : MS-DOS WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.