Article ID: 72583 - Last Review: July 11, 2005 - Revision: 1.2

MapVirtualKey() Maps Keypad Keys Incorrectly

This article was previously published under Q72583
Expand all | Collapse all

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.

APPLIES TO
  • Microsoft Platform Software Development Kit-January 2000 Edition
Keywords: 
kbbug kbkeyin kbinput kbpending KB72583
 

Article Translations