Do not follow HTML links if selecting text (patch #1719577)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1149,9 +1149,13 @@ void wxHtmlWindow::OnMouseUp(wxMouseEvent& event)
|
|||||||
ReleaseMouse();
|
ReleaseMouse();
|
||||||
m_makingSelection = false;
|
m_makingSelection = false;
|
||||||
|
|
||||||
// did the user move the mouse far enough from starting point?
|
// if m_selection=NULL, the user didn't move the mouse far enough from
|
||||||
if ( CopySelection(Primary) )
|
// starting point and the mouse up event is part of a click, the user
|
||||||
|
// is not selecting text:
|
||||||
|
if ( m_selection )
|
||||||
{
|
{
|
||||||
|
CopySelection(Primary);
|
||||||
|
|
||||||
// we don't want mouse up event that ended selecting to be
|
// we don't want mouse up event that ended selecting to be
|
||||||
// handled as mouse click and e.g. follow hyperlink:
|
// handled as mouse click and e.g. follow hyperlink:
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user