ugly 'fix' for wxHtmlHelpFrame's misbehviour under wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1125,8 +1125,12 @@ void wxHtmlHelpFrame::OnActivate(wxActivateEvent& event)
|
||||
{
|
||||
// This saves one mouse click when using the
|
||||
// wxHTML for context sensitive help systems
|
||||
#ifndef __WXGTK__
|
||||
// NB: wxActivateEvent is a bit broken in wxGTK
|
||||
// and is sometimes sent when it should not be
|
||||
if (event.GetActive() && m_HtmlWin)
|
||||
m_HtmlWin->SetFocus();
|
||||
#endif
|
||||
|
||||
event.Skip();
|
||||
}
|
||||
|
Reference in New Issue
Block a user