Return true from OnCellClicked if the event was processed, otherwise further processing will use default behaviour which may negate the effect of the event handler.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2014-02-04 19:10:22 +00:00
parent 179d117a35
commit 9733b78862

View File

@@ -254,7 +254,10 @@ bool wxHtmlWindowMouseHelper::OnCellClicked(wxHtmlCell *cell,
wxASSERT_MSG( cell, wxT("can't be called with NULL cell") );
cell->ProcessMouseClick(m_interface, ev.GetPoint(), ev.GetMouseEvent());
// If we don't return true, HTML listboxes will always think that they should take
// the focus
if (cell->ProcessMouseClick(m_interface, ev.GetPoint(), ev.GetMouseEvent()))
return true;
}
// true if a link was clicked, false otherwise