mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 23:39:24 +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
|
if Item = nil then
|
||||||
Exit;
|
Exit;
|
||||||
HandleItem(Item.Parent);
|
HandleItem(Item.Parent);
|
||||||
if Item.Enabled then
|
if FShortcutHandled and Item.Enabled then
|
||||||
begin
|
begin
|
||||||
Item.InitiateActions;
|
Item.InitiateActions;
|
||||||
Item.Click;
|
Item.Click;
|
||||||
|
Loading…
Reference in New Issue
Block a user