Avoid intercepting Ctrl-TAB keys in generic wxDataViewCtrl.

Check for the absence of modifiers before intercepting the TAB key, we only
want to do it for plain TAB or Shift-TAB but not Ctrl-TAB, for example, as
this prevented the user from switching between MDI windows when focus was on
wxDataViewCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-10-20 22:06:42 +00:00
parent 72ecca770a
commit 0c359fa476

View File

@@ -3594,7 +3594,7 @@ void wxDataViewMainWindow::OnCharHook(wxKeyEvent& event)
}
else if ( m_useCellFocus )
{
if ( event.GetKeyCode() == WXK_TAB )
if ( event.GetKeyCode() == WXK_TAB && !event.HasModifiers() )
{
if ( event.ShiftDown() )
OnLeftKey(event);