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
Exit;
HandleItem(Item.Parent);
if Item.Enabled then
if FShortcutHandled and Item.Enabled then
begin
Item.InitiateActions;
Item.Click;