diff --git a/components/lazcontrols/checkcombo.pas b/components/lazcontrols/checkcombo.pas index ffe85e3f2a..d06f35ceb0 100644 --- a/components/lazcontrols/checkcombo.pas +++ b/components/lazcontrols/checkcombo.pas @@ -304,7 +304,7 @@ begin { do not call inherited ! } aEnabled:=IsEnabled; if not (csDesigning in ComponentState) then aEnabled:= (aEnabled and ItemState.Enabled); - {$IF DEFINED(LCLWin32) or DEFINED(LCLWin64)} + {$IF DEFINED(LCLWin32) or DEFINED(LCLWin64) or DEFINED(Darwin)} aFocusedEditableMainItemNoDD := (Focused and (ARect.Left>0) and not aDropped); {$ELSE} aFocusedEditableMainItemNoDD := False; @@ -382,13 +382,13 @@ begin { do not call inherited ! } end; procedure TCustomCheckCombo.DropDown; -{$IF DEFINED(LCLWin32) or DEFINED(LCLWin64)} +{$IF DEFINED(LCLWin32) or DEFINED(LCLWin64) or DEFINED(Darwin)} {$ELSE} var aCursorPos: TPoint; aRect: TRect; {$ENDIF} begin - {$IF DEFINED(LCLWin32) or DEFINED(LCLWin64)} + {$IF DEFINED(LCLWin32) or DEFINED(LCLWin64) or DEFINED(Darwin)} FRejectDropDown:=False; {$ELSE} aCursorPos:=ScreenToControl(Mouse.CursorPos);