mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 12:20:39 +01:00
gtk2: fix mouse keys in mouse messages 2
git-svn-id: trunk@51726 -
This commit is contained in:
parent
578a281e53
commit
acd27e9025
@ -2062,9 +2062,9 @@ var
|
|||||||
MessI.Msg := CheckMouseButtonDownUp(AWinControl, LastMouse, EventXY, MouseButton, True);
|
MessI.Msg := CheckMouseButtonDownUp(AWinControl, LastMouse, EventXY, MouseButton, True);
|
||||||
MessI.Keys := MessI.Keys or BtnKey;
|
MessI.Keys := MessI.Keys or BtnKey;
|
||||||
case LastMouse.ClickCount of
|
case LastMouse.ClickCount of
|
||||||
2: Msg.Keys := Msg.Keys or MK_DOUBLECLICK;
|
2: MessI.Keys := MessI.Keys or MK_DOUBLECLICK;
|
||||||
3: Msg.Keys := Msg.Keys or MK_TRIPLECLICK;
|
3: MessI.Keys := MessI.Keys or MK_TRIPLECLICK;
|
||||||
4: Msg.Keys := Msg.Keys or MK_QUADCLICK;
|
4: MessI.Keys := MessI.Keys or MK_QUADCLICK;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$IFDEF VerboseMouseBugfix}
|
{$IFDEF VerboseMouseBugfix}
|
||||||
@ -2228,11 +2228,6 @@ var
|
|||||||
function CheckMouseButtonUp(MouseButton, BtnKey: longint): boolean;
|
function CheckMouseButtonUp(MouseButton, BtnKey: longint): boolean;
|
||||||
begin
|
begin
|
||||||
MessI.Msg := CheckMouseButtonDownUp(AWinControl, LastMouse, EventXY, MouseButton, False);
|
MessI.Msg := CheckMouseButtonDownUp(AWinControl, LastMouse, EventXY, MouseButton, False);
|
||||||
case LastMouse.ClickCount of
|
|
||||||
2: Msg.Keys := Msg.Keys or MK_DOUBLECLICK;
|
|
||||||
3: Msg.Keys := Msg.Keys or MK_TRIPLECLICK;
|
|
||||||
4: Msg.Keys := Msg.Keys or MK_QUADCLICK;
|
|
||||||
end;
|
|
||||||
Result := True;
|
Result := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -2270,6 +2265,11 @@ begin
|
|||||||
3: ShiftState := ShiftState - [ssRight];
|
3: ShiftState := ShiftState - [ssRight];
|
||||||
end;
|
end;
|
||||||
MessI.Keys := ShiftStateToKeys(ShiftState);
|
MessI.Keys := ShiftStateToKeys(ShiftState);
|
||||||
|
case LastMouse.ClickCount of
|
||||||
|
2: MessI.Keys := MessI.Keys or MK_DOUBLECLICK;
|
||||||
|
3: MessI.Keys := MessI.Keys or MK_TRIPLECLICK;
|
||||||
|
4: MessI.Keys := MessI.Keys or MK_QUADCLICK;
|
||||||
|
end;
|
||||||
|
|
||||||
if MessI.Msg <> LM_NULL then
|
if MessI.Msg <> LM_NULL then
|
||||||
begin
|
begin
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user