mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 14:36:09 +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;
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user