X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a11cca24d9781e45bfffc402e1b26d1e69f169f..b1d7de5ae0c53162b57ac20cfed04264f0f27b30:/src/gtk1/spinctrl.cpp diff --git a/src/gtk1/spinctrl.cpp b/src/gtk1/spinctrl.cpp index 44d10c8a73..a15f637dda 100644 --- a/src/gtk1/spinctrl.cpp +++ b/src/gtk1/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);