diff --git a/Terminal.Gui/Core/CollectionNavigator.cs b/Terminal.Gui/Core/CollectionNavigator.cs index cc3b1124f..a9bf3f920 100644 --- a/Terminal.Gui/Core/CollectionNavigator.cs +++ b/Terminal.Gui/Core/CollectionNavigator.cs @@ -12,7 +12,7 @@ namespace Terminal.Gui { /// the search string is cleared and the next item is found that starts with the last keystroke. /// /// - /// If the user pauses keystrokes for a short time (250ms), the search string is cleared. + /// If the user pauses keystrokes for a short time (see ), the search string is cleared. /// /// public class CollectionNavigator { @@ -28,7 +28,11 @@ namespace Terminal.Gui { public CollectionNavigator (IEnumerable collection) => Collection = collection; DateTime lastKeystroke = DateTime.Now; - internal int TypingDelay { get; set; } = 250; + /// + /// Gets or sets the number of milliseconds to delay before clearing the search string. The delay is + /// reset on each call to . The default is 500ms. + /// + public int TypingDelay { get; set; } = 500; /// /// The compararer function to use when searching the collection. @@ -67,7 +71,7 @@ namespace Terminal.Gui { private string _searchString = ""; /// /// Gets the current search string. This includes the set of keystrokes that have been pressed - /// since the last unsuccessful match or after a 250ms delay. Useful for debugging. + /// since the last unsuccessful match or after ) milliseconds. Useful for debugging. /// public string SearchString { get => _searchString;