mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 11:16:09 +02:00
lcl: added support for mouse events and ssMeta modifier. ssMeta present in ShiftState on Cmd (Win) key pressed
git-svn-id: trunk@23815 -
This commit is contained in:
parent
304c5206cd
commit
5fe460904f
@ -1695,6 +1695,7 @@ begin
|
|||||||
if Keys and MK_XBUTTON1 <> 0 then Include(Result, ssExtra1);
|
if Keys and MK_XBUTTON1 <> 0 then Include(Result, ssExtra1);
|
||||||
if Keys and MK_XBUTTON2 <> 0 then Include(Result, ssExtra2);
|
if Keys and MK_XBUTTON2 <> 0 then Include(Result, ssExtra2);
|
||||||
if GetKeyState(VK_MENU) < 0 then Include(Result, ssAlt);
|
if GetKeyState(VK_MENU) < 0 then Include(Result, ssAlt);
|
||||||
|
if (GetKeyState(VK_LWIN) < 0) or (GetKeyState(VK_RWIN) < 0) then Include(Result, ssMeta);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function KeyDataToShiftState(KeyData: Longint): TShiftState;
|
function KeyDataToShiftState(KeyData: Longint): TShiftState;
|
||||||
|
Loading…
Reference in New Issue
Block a user