Cocoa: Accelerator key (&) should be only supportted in TPopupMenu on macOS

This commit is contained in:
rich2014 2024-01-10 18:33:59 +08:00
parent 0f5a732909
commit beeabd41a0

View File

@ -219,7 +219,7 @@ begin
aTitle := lclMenuItem.Caption;
aShortCut := lclMenuItem.ShortCut;
if aShortCut=0 then begin
if (lclMenuItem.Owner is TPopupMenu) and (aShortCut=0) then begin
if not Assigned(lclMenuItem.Action) then begin
key:= getHotkeyFromTitle( aTitle );
if key<>0 then