From ef053161074d290e5ea095109350710e2a288bff Mon Sep 17 00:00:00 2001 From: Nikita Voronchev Date: Mon, 27 Jan 2020 19:00:33 +0300 Subject: [PATCH] [WinForms] Display caret while click on ComboBox (#18523) If one click on a `ComboBox` the caret does not appear. This is so because `document.PositionCaret` call hides the caret. --- mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs index bda0cff694f..a2cc8560ffd 100644 --- a/mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs +++ b/mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs @@ -1821,6 +1821,7 @@ namespace System.Windows.Forms } document.PositionCaret(e.X + document.ViewPortX, e.Y + document.ViewPortY); + document.DisplayCaret (); if (dbliclick) { switch (click_mode) { -- 2.11.4.GIT