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/branches/WX_3_0_BRANCH@75796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2014-02-05 11:29:38 +00:00
parent 63501404a5
commit afe23cb4d4

View File

@@ -254,7 +254,10 @@ bool wxHtmlWindowMouseHelper::OnCellClicked(wxHtmlCell *cell,
wxASSERT_MSG( cell, wxT("can't be called with NULL 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 // true if a link was clicked, false otherwise