diff options
author | Nikita Voronchev <nikita.voronchev@ru.axxonsoft.com> | 2020-01-27 19:00:33 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2020-01-27 19:00:33 +0300 |
commit | ef053161074d290e5ea095109350710e2a288bff (patch) | |
tree | c9c9e4426aa1999ffcc6530fe6d35ed46920d455 /mcs | |
parent | 1fd0748362e9014469fc7e6390826c7a5fdab027 (diff) |
[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.
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |