mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 23:59:07 +02:00
LCL-GTK2: Enable propagation of mouse xbutton up/down events. Issue #31456, patch from Jeppe Johansen.
git-svn-id: trunk@54324 -
This commit is contained in:
parent
7881c83d01
commit
8cbe7a228e
@ -2037,6 +2037,11 @@ var
|
|||||||
MessI.Msg := CheckMouseButtonDownUp({%H-}TLCLIntfHandle(widget), AWinControl, LastMouse, EventXY, MouseButton, True);
|
MessI.Msg := CheckMouseButtonDownUp({%H-}TLCLIntfHandle(widget), 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
|
||||||
|
1:
|
||||||
|
case BtnKey of
|
||||||
|
MK_XBUTTON1: MessI.Keys:=MessI.Keys or (1 shl 16);
|
||||||
|
MK_XBUTTON2: MessI.Keys:=MessI.Keys or (2 shl 16);
|
||||||
|
end;
|
||||||
2: MessI.Keys := MessI.Keys or MK_DOUBLECLICK;
|
2: MessI.Keys := MessI.Keys or MK_DOUBLECLICK;
|
||||||
3: MessI.Keys := MessI.Keys or MK_TRIPLECLICK;
|
3: MessI.Keys := MessI.Keys or MK_TRIPLECLICK;
|
||||||
4: MessI.Keys := MessI.Keys or MK_QUADCLICK;
|
4: MessI.Keys := MessI.Keys or MK_QUADCLICK;
|
||||||
|
Loading…
Reference in New Issue
Block a user