MapVirtualKey() Maps Keypad Keys Incorrectly (72583)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0

This article was previously published under Q72583

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 2000:

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.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbbug kbInput kbKeyIn kbpending KB72583