mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:19:36 +02:00
ShortCutToKey param as "out" instead of "var"
git-svn-id: trunk@34940 -
This commit is contained in:
parent
ebb35c4a27
commit
b9adcfa385
@ -417,8 +417,8 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function ShortCut(const Key: Word; const Shift : TShiftState) : TShortCut;
|
function ShortCut(const Key: Word; const Shift : TShiftState) : TShortCut;
|
||||||
procedure ShortCutToKey(const ShortCut : TShortCut; var Key: Word;
|
procedure ShortCutToKey(const ShortCut : TShortCut; out Key: Word;
|
||||||
var Shift : TShiftState);
|
out Shift : TShiftState);
|
||||||
|
|
||||||
var
|
var
|
||||||
DesignerMenuItemClick: TNotifyEvent = nil;
|
DesignerMenuItemClick: TNotifyEvent = nil;
|
||||||
@ -566,8 +566,8 @@ begin
|
|||||||
Result := LCLType.KeyToShortCut(Key,Shift);
|
Result := LCLType.KeyToShortCut(Key,Shift);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure ShortCutToKey(const ShortCut: TShortCut; var Key: Word;
|
procedure ShortCutToKey(const ShortCut: TShortCut; out Key: Word;
|
||||||
var Shift : TShiftState);
|
out Shift : TShiftState);
|
||||||
begin
|
begin
|
||||||
Key := ShortCut and $FF;
|
Key := ShortCut and $FF;
|
||||||
Shift := [];
|
Shift := [];
|
||||||
|
Loading…
Reference in New Issue
Block a user