honour wxSP_ARROW_KEYS in wxSpinCtrlGeneric and don't handle the arrows unless it's specified (closes #10565)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-10 15:36:17 +00:00
parent a82e28dd03
commit fd07e185b4
2 changed files with 13 additions and 0 deletions

View File

@@ -369,6 +369,12 @@ void wxSpinCtrlGenericBase::OnTextEnter(wxCommandEvent& event)
void wxSpinCtrlGenericBase::OnTextChar(wxKeyEvent& event)
{
if ( !HasFlag(wxSP_ARROW_KEYS) )
{
event.Skip();
return;
}
double value = m_value;
switch ( event.GetKeyCode() )
{