]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Fixes to key codes in keyboard events generated by wxMSW.
[wxWidgets.git] / src / msw / listctrl.cpp
index 997c3ca9bc5c653dba6ee90d132d11f237d71435..f5a7a6a75f514849c33bb65e2d93cfb93964ecd5 100644 (file)
@@ -2340,10 +2340,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                     {
                         eventType = wxEVT_COMMAND_LIST_KEY_DOWN;
 
-                        // wxCharCodeMSWToWX() returns 0 if the key is an ASCII
-                        // value which should be used as is
-                        int code = wxCharCodeMSWToWX(wVKey);
-                        event.m_code = code ? code : wVKey;
+                        event.m_code = wxCharCodeMSWToWX(wVKey);
                     }
 
                     event.m_itemIndex =