BUG: MapVirtualKey() Maps Keypad Keys Incorrectly

ID: Q72583


The information in this article applies to:


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.


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

Last Reviewed: March 6, 1999