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:
@@ -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
|
||||
|
Reference in New Issue
Block a user