]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/spinctrl.cpp
Applied patch [ 739063 ] window.cpp (gtk) - mouse event processing
[wxWidgets.git] / src / gtk1 / spinctrl.cpp
index f04242957b61740f341122b9bd49d65b8befe85a..6eed70a28629de91550784bbc4f7f888315ea88d 100644 (file)
@@ -255,7 +255,7 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event )
 {
     wxCHECK_RET( m_widget != NULL, wxT("invalid spin ctrl") );
 
-    if (event.KeyCode() == WXK_RETURN)
+    if (event.GetKeyCode() == WXK_RETURN)
     {
         wxWindow *top_frame = m_parent;
         while (top_frame->GetParent() && !(top_frame->GetParent()->IsTopLevel()))