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 commit is contained in:
@@ -3817,14 +3817,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") );
|
||||||
@@ -3838,7 +3830,6 @@ bool wxWindowGTK::DoNavigateIn(int flags)
|
|||||||
|
|
||||||
return rc != 0;
|
return rc != 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
bool wxWindowGTK::GTKWidgetNeedsMnemonic() const
|
bool wxWindowGTK::GTKWidgetNeedsMnemonic() const
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user