Don't assert if Ctrl+Tab is pressed inside a wxGTK window

Ignore the WinChange flag in DoNavigateIn() to fix an assertion that happened
when pressing Ctrl+Tab with the generic wxListCtrl having focus.

This seems to be consistent with pressing Ctrl+Tab elsewhere, e.g. when
cycling between buttons in a dialog.

(this is a backport of f3cd79984f2936a4148964af8c23cd42aab6a871 from master)
This commit is contained in:
Tim Kosse
2016-01-14 15:26:49 +01:00
committed by Vadim Zeitlin
parent 4e5e788bae
commit 6f5b629f2f

View File

@@ -3713,14 +3713,6 @@ void wxWindowGTK::DoMoveInTabOrder(wxWindow *win, WindowOrder move)
bool wxWindowGTK::DoNavigateIn(int flags) bool wxWindowGTK::DoNavigateIn(int flags)
{ {
if ( flags & wxNavigationKeyEvent::WinChange )
{
wxFAIL_MSG( wxT("not implemented") );
return false;
}
else // navigate inside the container
{
wxWindow *parent = wxGetTopLevelParent((wxWindow *)this); wxWindow *parent = wxGetTopLevelParent((wxWindow *)this);
wxCHECK_MSG( parent, false, wxT("every window must have a TLW parent") ); wxCHECK_MSG( parent, false, wxT("every window must have a TLW parent") );
@@ -3732,7 +3724,6 @@ bool wxWindowGTK::DoNavigateIn(int flags)
g_signal_emit_by_name(parent->m_widget, "focus", dir, &rc); g_signal_emit_by_name(parent->m_widget, "focus", dir, &rc);
return rc != 0; return rc != 0;
}
} }
bool wxWindowGTK::GTKWidgetNeedsMnemonic() const bool wxWindowGTK::GTKWidgetNeedsMnemonic() const