]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/spinctrl.cpp
Only send two EVT_BUTTON events when double clicking a button, not three
[wxWidgets.git] / src / msw / spinctrl.cpp
index d5253b263fe05f153392c3903d3fa173f7643a2a..8cbf378f111db401346aede4c23b38d0de4cbf9e 100644 (file)
@@ -162,7 +162,7 @@ bool wxSpinCtrl::ProcessTextCommand(WXWORD cmd, WXWORD WXUNUSED(id))
 
 void wxSpinCtrl::OnChar(wxKeyEvent& event)
 {
-    switch ( event.KeyCode() )
+    switch ( event.GetKeyCode() )
     {
         case WXK_RETURN:
             {