mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 21:41:01 +02:00
Cocoa: fix the issue be introduced by b184a37
Window/Control Active Message Lost
This commit is contained in:
parent
c3fcb2f746
commit
6ccadfca8b
@ -763,8 +763,8 @@ end;
|
||||
|
||||
procedure TCocoaWindow.DoWindowDidBecomeKey();
|
||||
begin
|
||||
if Assigned(CocoaWidgetSet.CurModalForm) then
|
||||
CocoaWidgetSet.CurModalForm.orderFront(nil);
|
||||
if CocoaWidgetSet.isModalSession then
|
||||
self.orderFront(nil);
|
||||
CursorHelper.SetCursorOnActive();
|
||||
end;
|
||||
|
||||
@ -1042,6 +1042,11 @@ begin
|
||||
newResponder := NSResponder(dl);
|
||||
end
|
||||
else
|
||||
if newResponder.isKindOfClass(NSWindow) or newResponder.isKindOfClass(TCocoaWindowContentDocument) then
|
||||
begin
|
||||
newResponder := nil;
|
||||
end
|
||||
else
|
||||
begin
|
||||
newResponder := newResponder.lclContentView;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user