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
This commit is contained in:
Vadim Zeitlin
2012-01-18 23:12:03 +00:00
parent ebfe373ee7
commit 615f68c6b9

View File

@@ -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