diff --git a/Terminal.Gui/Views/ComboBox.cs b/Terminal.Gui/Views/ComboBox.cs index c26a340ed..4fb87d7e5 100644 --- a/Terminal.Gui/Views/ComboBox.cs +++ b/Terminal.Gui/Views/ComboBox.cs @@ -749,7 +749,7 @@ namespace Terminal.Gui { } SetValue (searchset [listview.SelectedItem]); - search.CursorPosition = search.Text.RuneCount; + search.CursorPosition = search.Text.ConsoleWidth; Search_Changed (search.Text); OnOpenSelectedItem (); Reset (keepSearchText: true); @@ -825,7 +825,12 @@ namespace Terminal.Gui { } } - ShowList (); + if (HasFocus) { + ShowList (); + } else if (autoHide) { + isShow = false; + HideList (); + } } /// diff --git a/Terminal.Gui/Windows/Dialog.cs b/Terminal.Gui/Windows/Dialog.cs index c4d159eac..e4b5f3361 100644 --- a/Terminal.Gui/Windows/Dialog.cs +++ b/Terminal.Gui/Windows/Dialog.cs @@ -20,7 +20,7 @@ namespace Terminal.Gui { /// or buttons added to the dialog calls . /// public class Dialog : Window { - List