mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 17:19:18 +01:00
cocoa: Fixes bug #31056: Cocoa menu item shortcuts fall through to unfocused parent forms.
git-svn-id: trunk@55108 -
This commit is contained in:
parent
cb676c2241
commit
6f095ca396
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user