mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 01:19:29 +02:00
lcl: cocoa: fixed keyboard navigation in open dialog
git-svn-id: trunk@64571 -
This commit is contained in:
parent
8b81b7cfd3
commit
1c57b8cc78
@ -284,10 +284,16 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TCocoaMenu.performKeyEquivalent(theEvent: NSEvent): LCLObjCBoolean;
|
function TCocoaMenu.performKeyEquivalent(theEvent: NSEvent): LCLObjCBoolean;
|
||||||
|
var
|
||||||
|
OldKeyEq: boolean;
|
||||||
begin
|
begin
|
||||||
|
OldKeyEq:=isKeyEq;
|
||||||
isKeyEq := true;
|
isKeyEq := true;
|
||||||
|
try
|
||||||
inherited performKeyEquivalent(theEvent);
|
inherited performKeyEquivalent(theEvent);
|
||||||
isKeyEq := false;
|
finally
|
||||||
|
isKeyEq := OldKeyEq;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCocoaMenu.lclIsKeyEquivalent: LCLObjCBoolean;
|
function TCocoaMenu.lclIsKeyEquivalent: LCLObjCBoolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user