Cocoa: Fixed Key Modifiers handling in TCocoaApplication.nextEventMatchingMask_untilDate_inMode_dequeue()

This commit is contained in:
rich2014 2024-02-07 16:14:09 +08:00
parent f2ebd044c9
commit 558e9d1a58

View File

@ -744,13 +744,14 @@ begin
if not Assigned(Result) then
begin
SavedKeyModifiers := Result.modifierFlags;
{$ifdef COCOALOOPNATIVE}
if Assigned(Application) then Application.Idle(true);
{$endif}
Exit;
end;
SavedKeyModifiers := Result.modifierFlags;
if ((mode = NSEventTrackingRunLoopMode) or mode.isEqualToString(NSEventTrackingRunLoopMode))
and Assigned(TrackedControl)
then