]> git.saurik.com Git - wxWidgets.git/commitdiff
use non numpad equivalents for the numpad keys in CHAR events
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 May 2006 00:39:52 +0000 (00:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 May 2006 00:39:52 +0000 (00:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 21615c1dc7ffe6ffb95d51f6438beb9dc95a6f1c..b7f89b18bd8a09698a993a705af68f86aca9232c 100644 (file)
@@ -4925,7 +4925,10 @@ bool wxWindowMSW::HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII)
     }
     else // we're called from WM_KEYDOWN
     {
-        id = wxCharCodeMSWToWX(wParam, lParam);
+        // don't pass lParam to wxCharCodeMSWToWX() here because we don't want
+        // to get numpad key codes: CHAR events should use the logical keys
+        // such as WXK_HOME instead of WXK_NUMPAD_HOME which is for KEY events
+        id = wxCharCodeMSWToWX(wParam);
         if ( id == 0 )
         {
             // it's ASCII and will be processed here only when called from