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:
Julian Smart 2004-06-15 15:37:03 +00:00
parent 9e152a5578
commit 6ad49e18b9
2 changed files with 17 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}