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:
parent
9e152a5578
commit
6ad49e18b9
@ -1987,9 +1987,16 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
|
||||
case WXK_TAB:
|
||||
if ( !(m_windowStyle & wxTE_PROCESS_TAB))
|
||||
{
|
||||
if (Navigate(!event.ShiftDown(), event.ControlDown()))
|
||||
return;
|
||||
Navigate(!event.ShiftDown(), event.ControlDown());
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
// This is necessary (don't know why) or the tab will not
|
||||
// be inserted.
|
||||
WriteText(wxT("\t"));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1651,8 +1651,14 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
|
||||
case WXK_TAB:
|
||||
if ( !(m_windowStyle & wxTE_PROCESS_TAB))
|
||||
{
|
||||
if (Navigate(!event.ShiftDown(), event.ControlDown()))
|
||||
return;
|
||||
Navigate(!event.ShiftDown(), event.ControlDown());
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
// This is necessary (don't know why) or the tab will not
|
||||
// be inserted.
|
||||
WriteText(wxT("\t"));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user