mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 22:38:03 +02:00
Cocoa: Accelerator key (&) should be only supportted in TPopupMenu on macOS
This commit is contained in:
parent
0f5a732909
commit
beeabd41a0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user