lcl: cocoa: fixed keyboard navigation in open dialog

git-svn-id: trunk@64571 -
This commit is contained in:
mattias 2021-02-13 16:24:45 +00:00
parent 8b81b7cfd3
commit 1c57b8cc78

View File

@ -284,10 +284,16 @@ begin
end;
function TCocoaMenu.performKeyEquivalent(theEvent: NSEvent): LCLObjCBoolean;
var
OldKeyEq: boolean;
begin
OldKeyEq:=isKeyEq;
isKeyEq := true;
inherited performKeyEquivalent(theEvent);
isKeyEq := false;
try
inherited performKeyEquivalent(theEvent);
finally
isKeyEq := OldKeyEq;
end;
end;
function TCocoaMenu.lclIsKeyEquivalent: LCLObjCBoolean;