Only when wxTE-PROCESS_ENTER has been set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4a11cca24d
commit
75a22e8106
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user