diff --git a/lcl/include/customcombobox.inc b/lcl/include/customcombobox.inc index 4f80159683..1e897458c2 100644 --- a/lcl/include/customcombobox.inc +++ b/lcl/include/customcombobox.inc @@ -479,7 +479,10 @@ begin UserDropDown := ((Shift *[ssAlt] = [ssAlt]) and (Key = VK_DOWN)); PreventDropDown := Key in [VK_TAB, VK_RETURN, VK_ESCAPE]; if PreventDropDown then + begin + if DroppedDown then Key := VK_UNKNOWN; //prevent execution of DefaultAction (Delphi compatibility) DroppedDown := False; + end; if AutoDropDown or UserDropDown or FReturnArrowState then begin if PreventDropDown then