mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 04:55:58 +02:00
LCL: Simplify LCLType a little. Issue #30996, patch from AlexeyT.
git-svn-id: trunk@53434 -
This commit is contained in:
parent
74651f857e
commit
e3d76eb840
@ -3040,12 +3040,8 @@ end;
|
||||
|
||||
function KeyToShortCut(const Key: Word; const Shift: TShiftState): TShortCut;
|
||||
begin
|
||||
if (Key and $FF00) <> 0 then exit(0);
|
||||
Result := Key;
|
||||
if (Result and $FF00) <> 0 then begin
|
||||
Result:=0;
|
||||
exit;
|
||||
end;
|
||||
|
||||
if ssShift in Shift then Inc(Result,scShift);
|
||||
if ssCtrl in Shift then Inc(Result,scCtrl);
|
||||
if ssAlt in Shift then Inc(Result,scAlt);
|
||||
|
Loading…
Reference in New Issue
Block a user