]> git.saurik.com Git - wxWidgets.git/commitdiff
Skip EVT_RIGHT_UP event in wxHtmlWindow if it wasn't handled.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Jan 2012 23:12:03 +0000 (23:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Jan 2012 23:12:03 +0000 (23:12 +0000)
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

src/html/htmlwin.cpp

index 2ed020e48e681844b6389d9604f74d7c1eb91ab0..8be6354eb195583c3e5470685cc4d525ee19721c 100644 (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