MapVirtualKey() Maps Keypad Keys Incorrectly

ID: Q72583


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Windows 2000


SYMPTOMS

Under Windows 95, Windows 98, or Windows 3.1:

When MapVirtualKey() is passed valid virtual key codes for the keys on the numeric keypad, the function fails or returns an invalid scan code.

Under Windows 95, Windows 98, Windows NT 4.0 or Windows NT 5.0:

When passing numeric key pad scan codes, MapVirtualKey() while returns valid Virtual key codes for VK_SEPERATOR, VK_MULTIPLY, VK_SUBTRACT, and VK_ADD only.


CAUSE

Because various keyboards use different scan codes to represent Numpad keys, these keys cannot be returned reliably.


STATUS

This behavior is by design.

Additional query words:

Keywords : kbInput kbKeyIn kbNTOS kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: January 28, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.