cocoa: Fixes bug #31056: Cocoa menu item shortcuts fall through to unfocused parent forms.

git-svn-id: trunk@55108 -
This commit is contained in:
sekelsenmat 2017-05-27 06:49:46 +00:00
parent cb676c2241
commit 6f095ca396

View File

@ -305,6 +305,10 @@ begin
LCLSendActivateMsg(Target, WA_ACTIVE, false);
LCLSendSetFocusMsg(Target);
// The only way to update Forms.ActiveCustomForm for the main form
// is calling TCustomForm.SetFocusedControl, see bug 31056
ACustForm.SetFocusedControl(ACustForm.ActiveControl);
IsActivating:=False;
end;
end;