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:
@@ -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() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user