X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a11cca24d9781e45bfffc402e1b26d1e69f169f..15ad38c34f3bbd0a0c912dee5575ff2d3bb8ed9a:/src/gtk/spinctrl.cpp diff --git a/src/gtk/spinctrl.cpp b/src/gtk/spinctrl.cpp index 44d10c8a73..a15f637dda 100644 --- a/src/gtk/spinctrl.cpp +++ b/src/gtk/spinctrl.cpp @@ -290,7 +290,7 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event ) } } - if ((event.GetKeyCode() == WXK_RETURN)) + if ((event.GetKeyCode() == WXK_RETURN) && (m_windowStyle & wxPROCESS_ENTER)) { wxCommandEvent evt( wxEVT_COMMAND_TEXT_ENTER, m_windowId ); evt.SetEventObject(this);