Turbopower_iPro: Avoid opening hyperlinks if a special key is pressed while clicking.

git-svn-id: trunk@50189 -
This commit is contained in:
wp 2015-10-28 16:13:16 +00:00
parent 2ff909a6cc
commit 9c9b31c0e5

View File

@ -13060,9 +13060,8 @@ procedure TIpHtmlInternalPanel.MouseUp(Button: TMouseButton; Shift: TShiftState;
begin
inherited;
MouseIsDown := False;
if (abs(MouseDownX - X) < 4)
and (abs(MouseDownY - Y) < 4) then
if (Button = mbLeft) and (Hyper.HotNode <> nil) then
if (abs(MouseDownX - X) < 4) and (abs(MouseDownY - Y) < 4) then
if (Button = mbLeft) and (Shift = []) and (Hyper.HotNode <> nil) then
{$IFDEF IP_LAZARUS}
// to avoid references to invalid objects do it asynchronously
Application.QueueAsyncCall(AsyncHotInvoke, 0)