mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:49:30 +02:00
LCL: Disable menu shortcut keys when parent menu is disabled. Issue #21720, patch from Mukhin Alexey
git-svn-id: trunk@46111 -
This commit is contained in:
parent
f91bff8d37
commit
904709043a
@ -241,7 +241,7 @@ function TMenu.IsShortcut(var Message: TLMKey): boolean;
|
||||
if Item = nil then
|
||||
Exit;
|
||||
HandleItem(Item.Parent);
|
||||
if Item.Enabled then
|
||||
if FShortcutHandled and Item.Enabled then
|
||||
begin
|
||||
Item.InitiateActions;
|
||||
Item.Click;
|
||||
|
Loading…
Reference in New Issue
Block a user