mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 10:20:29 +02:00
Merged revision(s) 62481 #11fb196904, 62490 #5301fa49cb from trunk:
cocoa: forcing focusing of the content view, if window gets focused ........ cocoa: ShowHide only activates non hint window. Hint window are brought to front, but not getting focus. bug #36516 ........ git-svn-id: branches/fixes_2_0@62499 -
This commit is contained in:
parent
08a6145ef0
commit
61b50a74b1
@ -746,6 +746,13 @@ begin
|
||||
|
||||
if Assigned(callback) then
|
||||
callback.Activate;
|
||||
|
||||
// LCL didn't change focus. TCocoaWindow should not keep the focus for itself
|
||||
// and it should pass it to it's content view
|
||||
if (firstResponder = self)
|
||||
and Assigned(contentView)
|
||||
and (contentView.isKindOfClass(TCocoaWindowContent)) then
|
||||
self.makeFirstResponder( TCocoaWindowContent(contentView).documentView );
|
||||
end;
|
||||
|
||||
procedure TCocoaWindow.windowDidResignKey(notification: NSNotification);
|
||||
|
@ -1126,7 +1126,7 @@ begin
|
||||
TCocoaWSWinControl.ShowHide(AWinControl);
|
||||
|
||||
// ShowHide() also actives (sets focus to) the window
|
||||
if lShow and Assigned(w) then
|
||||
if lShow and Assigned(w) and not (w.isKindOfClass(NSPanel)) then
|
||||
w.makeKeyWindow;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user