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:
juha 2014-09-02 22:21:29 +00:00
parent f91bff8d37
commit 904709043a

View File

@ -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;