From: Vadim Zeitlin Date: Wed, 18 Jan 2012 23:12:03 +0000 (+0000) Subject: Skip EVT_RIGHT_UP event in wxHtmlWindow if it wasn't handled. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/615f68c6b9fb887d2cfcbc6a3c6c3716a34a914e Skip EVT_RIGHT_UP event in wxHtmlWindow if it wasn't handled. This fixes generation of EVT_CONTEXT_MENU for mouse clicks in wxHtmlWindow under MSW: it wasn't generated before because we always ate the right mouse clicks. Closes #2465. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 2ed020e48e..8be6354eb1 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -1282,7 +1282,8 @@ void wxHtmlWindow::OnMouseUp(wxMouseEvent& event) #endif // wxUSE_CLIPBOARD wxPoint pos = CalcUnscrolledPosition(event.GetPosition()); - wxHtmlWindowMouseHelper::HandleMouseClick(m_Cell, pos, event); + if ( !wxHtmlWindowMouseHelper::HandleMouseClick(m_Cell, pos, event) ) + event.Skip(); } #if wxUSE_CLIPBOARD