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 abac1d0235
commit 246652ca2a

View File

@ -670,13 +670,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