]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Comment out direction aware code for now.
[wxWidgets.git] / src / msw / listctrl.cpp
index 6e8eba40b58b828e6f66d5933635dc8eafd112b4..6bb6ef15278ea985e5dbfe99e72afd4288bd54e9 100644 (file)
@@ -1763,6 +1763,20 @@ bool wxListCtrl::SortItems(wxListCtrlCompare fn, long data)
 // message processing
 // ----------------------------------------------------------------------------
 
+bool wxListCtrl::MSWShouldPreProcessMessage(WXMSG* msg)
+{
+    if ( msg->message == WM_KEYDOWN )
+    {
+        if ( msg->wParam == VK_RETURN )
+        {
+            // we need VK_RETURN to generate wxEVT_COMMAND_LIST_ITEM_ACTIVATED
+            return false;
+        }
+    }
+
+    return wxControl::MSWShouldPreProcessMessage(msg);
+}
+
 bool wxListCtrl::MSWCommand(WXUINT cmd, WXWORD id)
 {
     if (cmd == EN_UPDATE)