Consistent tab behaviour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1987,9 +1987,16 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
case WXK_TAB:
|
case WXK_TAB:
|
||||||
if ( !(m_windowStyle & wxTE_PROCESS_TAB))
|
if ( !(m_windowStyle & wxTE_PROCESS_TAB))
|
||||||
{
|
{
|
||||||
if (Navigate(!event.ShiftDown(), event.ControlDown()))
|
Navigate(!event.ShiftDown(), event.ControlDown());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// This is necessary (don't know why) or the tab will not
|
||||||
|
// be inserted.
|
||||||
|
WriteText(wxT("\t"));
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1651,8 +1651,14 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
case WXK_TAB:
|
case WXK_TAB:
|
||||||
if ( !(m_windowStyle & wxTE_PROCESS_TAB))
|
if ( !(m_windowStyle & wxTE_PROCESS_TAB))
|
||||||
{
|
{
|
||||||
if (Navigate(!event.ShiftDown(), event.ControlDown()))
|
Navigate(!event.ShiftDown(), event.ControlDown());
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// This is necessary (don't know why) or the tab will not
|
||||||
|
// be inserted.
|
||||||
|
WriteText(wxT("\t"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user