diff --git a/Terminal.Gui/Application/Application.cs b/Terminal.Gui/Application/Application.cs index 9833d19cd..752b8b90d 100644 --- a/Terminal.Gui/Application/Application.cs +++ b/Terminal.Gui/Application/Application.cs @@ -165,7 +165,7 @@ public static partial class Application Colors.Reset (); // Reset synchronization context to allow the user to run async/await, - // as the main loop has been ended, the synchronization context from + // as the main loop has been ended, the synchronization context from // gui.cs does no longer process any callbacks. See #1084 for more details: // (https://github.com/gui-cs/Terminal.Gui/issues/1084). SynchronizationContext.SetSynchronizationContext (null); @@ -211,11 +211,11 @@ public static partial class Application // INTERNAL function for initializing an app with a Toplevel factory object, driver, and mainloop. // // Called from: - // + // // Init() - When the user wants to use the default Toplevel. calledViaRunT will be false, causing all state to be reset. // Run() - When the user wants to use a custom Toplevel. calledViaRunT will be true, enabling Run() to be called without calling Init first. // Unit Tests - To initialize the app with a custom Toplevel, using the FakeDriver. calledViaRunT will be false, causing all state to be reset. - // + // // calledViaRunT: If false (default) all state will be reset. If true the state will not be reset. [RequiresUnreferencedCode ("AOT")] [RequiresDynamicCode ("AOT")] @@ -250,7 +250,7 @@ public static partial class Application // Start the process of configuration management. // Note that we end up calling LoadConfigurationFromAllSources // multiple times. We need to do this because some settings are only - // valid after a Driver is loaded. In this cases we need just + // valid after a Driver is loaded. In this case we need just // `Settings` so we can determine which driver to use. // Don't reset, so we can inherit the theme from the previous run. Load (); @@ -391,7 +391,7 @@ public static partial class Application /// public static event EventHandler NotifyNewRunState; - /// Notify that a existent is stopping ( was called). + /// Notify that an existent is stopping ( was called). /// /// If is callers to /// must also subscribe to and manually dispose of the token @@ -471,7 +471,7 @@ public static partial class Application Top.OnLeave (toplevel); } - // BUGBUG: We should not depend on `Id` internally. + // BUGBUG: We should not depend on `Id` internally. // BUGBUG: It is super unclear what this code does anyway. if (string.IsNullOrEmpty (toplevel.Id)) { @@ -859,7 +859,7 @@ public static partial class Application } // TODO: Determine if this is really needed. The only code that calls WakeUp I can find - // is ProgressBarStyles and it's not clear it needs to. + // is ProgressBarStyles, and it's not clear it needs to. /// Wakes up the running application that might be waiting on input. public static void Wakeup () { MainLoop?.Wakeup (); } @@ -1168,13 +1168,13 @@ public static partial class Application runState.Toplevel.OnUnloaded (); } - // End the RunState.Toplevel + // End the RunState.Toplevel // First, take it off the Toplevel Stack if (_topLevels.Count > 0) { if (_topLevels.Peek () != runState.Toplevel) { - // If there the top of the stack is not the RunState.Toplevel then + // If the top of the stack is not the RunState.Toplevel then // this call to End is not balanced with the call to Begin that started the RunState throw new ArgumentException ("End must be balanced with calls to Begin"); } @@ -1185,8 +1185,8 @@ public static partial class Application // Notify that it is closing runState.Toplevel?.OnClosed (runState.Toplevel); - // If there is a OverlappedTop that is not the RunState.Toplevel then runstate.TopLevel - // is a child of MidTop and we should notify the OverlappedTop that it is closing + // If there is a OverlappedTop that is not the RunState.Toplevel then RunState.Toplevel + // is a child of MidTop, and we should notify the OverlappedTop that it is closing if (OverlappedTop is { } && !runState.Toplevel.Modal && runState.Toplevel != OverlappedTop) { OverlappedTop.OnChildClosed (runState.Toplevel); @@ -1242,7 +1242,7 @@ public static partial class Application /// Holds the stack of TopLevel views. - // BUGBUG: Techncally, this is not the full lst of TopLevels. THere be dragons hwre. E.g. see how Toplevel.Id is used. What + // BUGBUG: Technically, this is not the full lst of TopLevels. There be dragons here, e.g. see how Toplevel.Id is used. What // about TopLevels that are just a SubView of another View? internal static readonly Stack _topLevels = new (); diff --git a/Terminal.Gui/Clipboard/IClipboard.cs b/Terminal.Gui/Clipboard/IClipboard.cs index 1dd497bf1..789b30aeb 100644 --- a/Terminal.Gui/Clipboard/IClipboard.cs +++ b/Terminal.Gui/Clipboard/IClipboard.cs @@ -6,21 +6,21 @@ public interface IClipboard /// Returns true if the environmental dependencies are in place to interact with the OS clipboard. bool IsSupported { get; } - /// Get the operation system clipboard. + /// Get the operating system clipboard. /// Thrown if it was not possible to read the clipboard contents. string GetClipboardData (); - /// Sets the operation system clipboard. + /// Sets the operating system clipboard. /// /// Thrown if it was not possible to set the clipboard contents. void SetClipboardData (string text); - /// Gets the operation system clipboard if possible. + /// Gets the operating system clipboard if possible. /// Clipboard contents read /// true if it was possible to read the OS clipboard. bool TryGetClipboardData (out string result); - /// Sets the operation system clipboard if possible. + /// Sets the operating system clipboard if possible. /// /// True if the clipboard content was set successfully. bool TrySetClipboardData (string text); diff --git a/Terminal.Gui/Configuration/ConfigurationManager.cs b/Terminal.Gui/Configuration/ConfigurationManager.cs index 68c8c184c..e234b6ee7 100644 --- a/Terminal.Gui/Configuration/ConfigurationManager.cs +++ b/Terminal.Gui/Configuration/ConfigurationManager.cs @@ -125,7 +125,7 @@ public static class ConfigurationManager /// private static SettingsScope? _settings; - /// Name of the running application. By default this property is set to the application's assembly name. + /// Name of the running application. By default, this property is set to the application's assembly name. public static string AppName { get; set; } = Assembly.GetEntryAssembly ()?.FullName?.Split (',') [0]?.Trim ()!; /// Application-specific configuration settings scope. diff --git a/Terminal.Gui/Configuration/ConfigurationManagerEventArgs.cs b/Terminal.Gui/Configuration/ConfigurationManagerEventArgs.cs index 9d7092321..0cc42f6a1 100644 --- a/Terminal.Gui/Configuration/ConfigurationManagerEventArgs.cs +++ b/Terminal.Gui/Configuration/ConfigurationManagerEventArgs.cs @@ -15,6 +15,6 @@ public class ThemeManagerEventArgs : EventArgs /// Initializes a new instance of public ThemeManagerEventArgs (string newTheme) { NewTheme = newTheme; } - /// The name of the new active theme.. + /// The name of the new active theme. public string NewTheme { get; set; } = string.Empty; } diff --git a/Terminal.Gui/Configuration/SerializableConfigurationProperty.cs b/Terminal.Gui/Configuration/SerializableConfigurationProperty.cs index 4741814e6..1e0e2545e 100644 --- a/Terminal.Gui/Configuration/SerializableConfigurationProperty.cs +++ b/Terminal.Gui/Configuration/SerializableConfigurationProperty.cs @@ -2,7 +2,7 @@ namespace Terminal.Gui; -/// An attribute that can be applied to a property to indicate that it should included in the configuration file. +/// An attribute that can be applied to a property to indicate that it should be included in the configuration file. /// /// [SerializableConfigurationProperty(Scope = typeof(Configuration.ThemeManager.ThemeScope)), JsonConverter /// (typeof (JsonStringEnumConverter))] public static LineStyle DefaultBorderStyle { ... diff --git a/Terminal.Gui/Configuration/ThemeManager.cs b/Terminal.Gui/Configuration/ThemeManager.cs index e6efe32e0..daf2edd9d 100644 --- a/Terminal.Gui/Configuration/ThemeManager.cs +++ b/Terminal.Gui/Configuration/ThemeManager.cs @@ -9,7 +9,7 @@ namespace Terminal.Gui; /// Contains a dictionary of the s for a Terminal.Gui application. /// /// A Theme is a collection of settings that are named. The default theme is named "Default". -/// The property is used to detemrine the currently active theme. +/// The property is used to determine the currently active theme. /// /// /// is a singleton class. It is created when the first property diff --git a/Terminal.Gui/ConsoleDrivers/ConsoleDriver.cs b/Terminal.Gui/ConsoleDrivers/ConsoleDriver.cs index 05cbb6217..e5ac4ad07 100644 --- a/Terminal.Gui/ConsoleDrivers/ConsoleDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/ConsoleDriver.cs @@ -568,7 +568,7 @@ public abstract class ConsoleDriver /// Called when a key is released. Fires the event. /// - /// Drivers that do not support key release events will calls this method after processing + /// Drivers that do not support key release events will call this method after processing /// is complete. /// /// @@ -604,7 +604,7 @@ public enum CursorVisibility /// Cursor caret has default /// /// Works under Xterm-like terminal otherwise this is equivalent to . This default directly - /// depends of the XTerm user configuration settings so it could be Block, I-Beam, Underline with possible blinking. + /// depends on the XTerm user configuration settings, so it could be Block, I-Beam, Underline with possible blinking. /// Default = 0x00010119, @@ -682,7 +682,7 @@ public enum KeyCode : uint /// /// If the is set, then the value is that of the special mask, otherwise, the value is - /// in the the lower bits (as extracted by ). + /// in the lower bits (as extracted by ). /// SpecialMask = 0x_fff0_0000, @@ -839,9 +839,9 @@ public enum KeyCode : uint //Delete = 127, // --- Special keys --- - // The values below are common non-alphanum keys. Their values are + // The values below are common non-alphanum keys. Their values are // based on the .NET ConsoleKey values, which, in-turn are based on the - // VK_ values from the Windows API. + // VK_ values from the Windows API. // We add MaxCodePoint to avoid conflicts with the Unicode values. /// The maximum Unicode codepoint value. Used to encode the non-alphanumeric control keys. diff --git a/Terminal.Gui/ConsoleDrivers/ConsoleKeyMapping.cs b/Terminal.Gui/ConsoleDrivers/ConsoleKeyMapping.cs index 8043c65eb..c3497f3ac 100644 --- a/Terminal.Gui/ConsoleDrivers/ConsoleKeyMapping.cs +++ b/Terminal.Gui/ConsoleDrivers/ConsoleKeyMapping.cs @@ -1435,7 +1435,7 @@ public static class ConsoleKeyMapping (VK)'2', ConsoleModifiers.Shift, '\"' - ), // BUGBUG: This is true for Portugese keyboard, but not ENG (@) or DEU (") + ), // BUGBUG: This is true for Portuguese keyboard, but not ENG (@) or DEU (") new ScanCodeMapping ( 3, (VK)'2', diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/ClipboardImpl.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/ClipboardImpl.cs index 99938dcc0..0ec8efc05 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/ClipboardImpl.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/ClipboardImpl.cs @@ -89,7 +89,7 @@ internal class CursesClipboard : ClipboardBase /// /// A clipboard implementation for MacOSX. This implementation uses the Mac clipboard API (via P/Invoke) to -/// copy/paste. The existance of the Mac pbcopy and pbpaste commands is used to determine if copy/paste is supported. +/// copy/paste. The existence of the Mac pbcopy and pbpaste commands is used to determine if copy/paste is supported. /// internal class MacOSXClipboard : ClipboardBase { diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs index 14d71c637..378e4b608 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs @@ -317,7 +317,7 @@ internal class CursesDriver : ConsoleDriver Curses.doupdate (); // - // We are setting Invisible as default so we could ignore XTerm DECSUSR setting + // We are setting Invisible as default, so we could ignore XTerm DECSUSR setting // switch (Curses.curs_set (0)) { @@ -977,7 +977,7 @@ internal static class Platform private static int _suspendSignal; /// Suspends the process by sending SIGTSTP to itself - /// The suspend. + /// True if the suspension was successful. public static bool Suspend () { int signal = GetSuspendSignal (); diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs index 7400214ec..be3fd1ac3 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs @@ -291,7 +291,7 @@ internal class UnmanagedLibrary } /// - /// On Linux systems, using using dlopen and dlsym results in DllNotFoundException("libdl.so not found") if + /// On Linux systems, using dlopen and dlsym results in DllNotFoundException("libdl.so not found") if /// libc6-dev is not installed. As a workaround, we load symbols for dlopen and dlsym from the current process as on /// Linux Mono sure is linked against these symbols. /// diff --git a/Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqReq.cs b/Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqReq.cs index b62ef17a4..29ef5afa7 100644 --- a/Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqReq.cs +++ b/Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqReq.cs @@ -22,7 +22,7 @@ public class EscSeqReqStatus /// Gets the number of requests. public int NumRequests { get; } - /// Gets the Escape Sequence Termintor (e.g. ESC[8t ... t is the terminator). + /// Gets the Escape Sequence Terminator (e.g. ESC[8t ... t is the terminator). public string Terminator { get; } } diff --git a/Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs b/Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs index f9c547af6..1eb63e34a 100644 --- a/Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs +++ b/Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs @@ -159,10 +159,10 @@ public static class EscSeqUtils /// Decodes an ANSI escape sequence. /// /// The which may contain a request. - /// The which may changes. - /// The which may changes. + /// The which may change. + /// The which may change. /// The array. - /// The which may changes. + /// The which may change. /// The control returned by the method. /// The code returned by the method. /// The values returned by the method. @@ -426,7 +426,7 @@ public static class EscSeqUtils #nullable restore /// - /// Gets all the needed information about a escape sequence. + /// Gets all the needed information about an escape sequence. /// /// The array with all chars. /// diff --git a/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeDriver.cs b/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeDriver.cs index 74328a818..6ec810c8a 100644 --- a/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeDriver.cs @@ -198,7 +198,7 @@ public class FakeDriver : ConsoleDriver FakeConsole.CursorTop = 0; FakeConsole.CursorLeft = 0; - //SetCursorVisibility (savedVisibitity); + //SetCursorVisibility (savedVisibility); void WriteToConsole (StringBuilder output, ref int lastCol, int row, ref int outputWidth) { @@ -437,7 +437,7 @@ public class FakeDriver : ConsoleDriver { if (FakeConsole.WindowHeight > 0) { - // Can raise an exception while is still resizing. + // Can raise an exception while it is still resizing. try { FakeConsole.CursorTop = 0; diff --git a/Terminal.Gui/ConsoleDrivers/NetDriver.cs b/Terminal.Gui/ConsoleDrivers/NetDriver.cs index 86ef13466..fcd7316e2 100644 --- a/Terminal.Gui/ConsoleDrivers/NetDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/NetDriver.cs @@ -1669,7 +1669,7 @@ internal class NetDriver : ConsoleDriver /// /// Mainloop intended to be used with the .NET System.Console API, and can be used on Windows and Unix, it is -/// cross platform but lacks things like file descriptor monitoring. +/// cross-platform but lacks things like file descriptor monitoring. /// /// This implementation is used for NetDriver. internal class NetMainLoop : IMainLoopDriver diff --git a/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs b/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs index 89c82dd58..8ff127a4b 100644 --- a/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs @@ -659,7 +659,7 @@ internal class WindowsConsole { public char Char { get; set; } public Attribute Attribute { get; set; } - public bool Empty { get; set; } // TODO: Temp hack until virutal terminal sequences + public bool Empty { get; set; } // TODO: Temp hack until virtual terminal sequences public ExtendedCharInfo (char character, Attribute attribute) { @@ -901,7 +901,7 @@ internal class WindowsConsole } } -#if false // Not needed on the constructor. Perhaps could be used on resizing. To study. +#if false // Not needed on the constructor. Perhaps could be used on resizing. To study. [DllImport ("kernel32.dll", ExactSpelling = true)] static extern IntPtr GetConsoleWindow (); @@ -1397,7 +1397,7 @@ internal class WindowsDriver : ConsoleDriver { if (WinConsole is { }) { - // BUGBUG: The results from GetConsoleOutputWindow are incorrect when called from Init. + // BUGBUG: The results from GetConsoleOutputWindow are incorrect when called from Init. // Our thread in WindowsMainLoop.CheckWin will get the correct results. See #if HACK_CHECK_WINCHANGED Size winSize = WinConsole.GetConsoleOutputWindow (out Point pos); Cols = winSize.Width; @@ -1642,7 +1642,7 @@ internal class WindowsDriver : ConsoleDriver if (keyInfo.Modifiers != 0) { - // These Oem keys have well defined chars. We ensure the representative char is used. + // These Oem keys have well-defined chars. We ensure the representative char is used. // If we don't do this, then on some keyboard layouts the wrong char is // returned (e.g. on ENG OemPlus un-shifted is =, not +). This is important // for key persistence ("Ctrl++" vs. "Ctrl+="). @@ -1656,7 +1656,7 @@ internal class WindowsDriver : ConsoleDriver }; } - // Return the mappedChar with they modifiers. Because mappedChar is un-shifted, if Shift was down + // Return the mappedChar with modifiers. Because mappedChar is un-shifted, if Shift was down // we should keep it return MapToKeyCodeModifiers (keyInfo.Modifiers, (KeyCode)mappedChar); } @@ -1901,8 +1901,8 @@ internal class WindowsDriver : ConsoleDriver // The ButtonState member of the MouseEvent structure has bit corresponding to each mouse button. // This will tell when a mouse button is pressed. When the button is released this event will - // be fired with it's bit set to 0. So when the button is up ButtonState will be 0. - // To map to the correct driver events we save the last pressed mouse button so we can + // be fired with its bit set to 0. So when the button is up ButtonState will be 0. + // To map to the correct driver events we save the last pressed mouse button, so we can // map to the correct clicked event. if ((_lastMouseButtonPressed is { } || _isButtonReleased) && mouseEvent.ButtonState != 0) { diff --git a/Terminal.Gui/Drawing/ColorScheme.cs b/Terminal.Gui/Drawing/ColorScheme.cs index d2acdab5c..603694eec 100644 --- a/Terminal.Gui/Drawing/ColorScheme.cs +++ b/Terminal.Gui/Drawing/ColorScheme.cs @@ -77,7 +77,7 @@ public record ColorScheme : IEqualityOperators init => _focus = value; } - /// The foreground and background color for for text in a focused view that indicates a . + /// The foreground and background color for text in a focused view that indicates a . public Attribute HotFocus { get => _hotFocus; diff --git a/Terminal.Gui/Drawing/Glyphs.cs b/Terminal.Gui/Drawing/Glyphs.cs index e98d60b1e..f64285f0f 100644 --- a/Terminal.Gui/Drawing/Glyphs.cs +++ b/Terminal.Gui/Drawing/Glyphs.cs @@ -348,7 +348,7 @@ public class GlyphDefinitions /// Box Drawings Left Tee - Heavy Vertical and Heavy Horizontal (U+2527) - ┣ public Rune LeftTeeHvDblH { get; set; } = (Rune)'┣'; - /// Box Drawings Righ Tee - Single Vertical and Single Horizontal (U+2524) - ┤ + /// Box Drawings Right Tee - Single Vertical and Single Horizontal (U+2524) - ┤ public Rune RightTee { get; set; } = (Rune)'┤'; /// Box Drawings Right Tee - Single Vertical and Double Horizontal (U+2561) - ╡ diff --git a/Terminal.Gui/Drawing/LineCanvas.cs b/Terminal.Gui/Drawing/LineCanvas.cs index 2bda9e5dd..4b5119a82 100644 --- a/Terminal.Gui/Drawing/LineCanvas.cs +++ b/Terminal.Gui/Drawing/LineCanvas.cs @@ -199,7 +199,7 @@ public class LineCanvas : IDisposable } // TODO: Unless there's an obvious use case for this API we should delete it in favor of the - // simpler version that doensn't take an area. + // simpler version that doesn't take an area. /// /// Evaluates the lines that have been added to the canvas and returns a map containing the glyphs and their /// locations. The glyphs are the characters that should be rendered so that all lines connect up with the appropriate diff --git a/Terminal.Gui/Drawing/LineStyle.cs b/Terminal.Gui/Drawing/LineStyle.cs index 6bb06212e..47e37a97a 100644 --- a/Terminal.Gui/Drawing/LineStyle.cs +++ b/Terminal.Gui/Drawing/LineStyle.cs @@ -41,7 +41,7 @@ public enum LineStyle RoundedDotted // TODO: Support Ruler - ///// + ///// ///// The border is drawn as a diagnostic ruler ("|123456789..."). ///// //Ruler diff --git a/Terminal.Gui/FileServices/AllowedType.cs b/Terminal.Gui/FileServices/AllowedType.cs index 06978cc86..8d840edec 100644 --- a/Terminal.Gui/FileServices/AllowedType.cs +++ b/Terminal.Gui/FileServices/AllowedType.cs @@ -33,7 +33,7 @@ public class AllowedTypeAny : IAllowedType public class AllowedType : IAllowedType { /// Initializes a new instance of the class. - /// The human readable text to display. + /// The human-readable text to display. /// Extension(s) to match e.g. .csv. public AllowedType (string description, params string [] extensions) { @@ -46,7 +46,7 @@ public class AllowedType : IAllowedType Extensions = extensions; } - /// Gets or Sets the human readable description for the file type e.g. "Comma Separated Values". + /// Gets or Sets the human-readable description for the file type e.g. "Comma Separated Values". public string Description { get; set; } /// Gets or Sets the permitted file extension(s) (e.g. ".csv"). diff --git a/Terminal.Gui/FileServices/FileDialogState.cs b/Terminal.Gui/FileServices/FileDialogState.cs index ece6d2428..042b5a75d 100644 --- a/Terminal.Gui/FileServices/FileDialogState.cs +++ b/Terminal.Gui/FileServices/FileDialogState.cs @@ -54,7 +54,7 @@ internal class FileDialogState .ToList (); } - // if theres a UI filter in place too + // if there's a UI filter in place too if (Parent.CurrentFilter is { }) { children = children.Where (MatchesApiFilter).ToList (); diff --git a/Terminal.Gui/FileServices/FileDialogStyle.cs b/Terminal.Gui/FileServices/FileDialogStyle.cs index 9cc6557f1..aac806de8 100644 --- a/Terminal.Gui/FileServices/FileDialogStyle.cs +++ b/Terminal.Gui/FileServices/FileDialogStyle.cs @@ -24,7 +24,7 @@ public class FileDialogStyle public string CancelButtonText { get; set; } = Strings.btnCancel; /// - /// Gets or sets the class thatis responsible for determining which color to use to represent files and + /// Gets or sets the class that is responsible for determining which color to use to represent files and /// directories when is . /// public FileSystemColorProvider ColorProvider { get; set; } = new (); @@ -100,7 +100,7 @@ public class FileDialogStyle /// Gets or sets the header text displayed in the Modified column of the files table. public string ModifiedColumnName { get; set; } = Strings.fdModified; - /// Gets or sets the text on the 'Ok' button. Typically you may want to change this to "Open" or "Save" etc. + /// Gets or sets the text on the 'Ok' button. Typically, you may want to change this to "Open" or "Save" etc. public string OkButtonText { get; set; } = Strings.btnOk; /// Gets or sets the text displayed in the 'Path' text box when user has not supplied any input yet. @@ -163,7 +163,7 @@ public class FileDialogStyle } catch (Exception) { - // Cannot get the system disks thats fine + // Cannot get the system disks, that's fine } try @@ -195,7 +195,7 @@ public class FileDialogStyle } catch (Exception) { - // Cannot get the special files for this OS oh well + // Cannot get the special files for this OS, oh well } return roots; diff --git a/Terminal.Gui/Input/Command.cs b/Terminal.Gui/Input/Command.cs index 24ebdb407..566cc9336 100644 --- a/Terminal.Gui/Input/Command.cs +++ b/Terminal.Gui/Input/Command.cs @@ -113,7 +113,7 @@ public enum Command /// Move one page down. PageDown, - /// Move one page page extending the selection to cover revealed objects/characters. + /// Move one page down extending the selection to cover revealed objects/characters. PageDownExtend, /// Move one page up. @@ -137,7 +137,7 @@ public enum Command /// Open the selected item. OpenSelectedItem, - /// Toggles the Expanded or collapsed state of a a list or item (with subitems). + /// Toggles the Expanded or collapsed state of a list or item (with subitems). ToggleExpandCollapse, /// Expands a list or item (with subitems). @@ -224,13 +224,13 @@ public enum Command /// Quit a . QuitToplevel, - /// Suspend a application (Only implemented in ). + /// Suspend an application (Only implemented in ). Suspend, /// Moves focus to the next view. NextView, - /// Moves focuss to the previous view. + /// Moves focus to the previous view. PreviousView, /// Moves focus to the next view or Toplevel (case of Overlapped). diff --git a/Terminal.Gui/Input/Key.cs b/Terminal.Gui/Input/Key.cs index 04777de66..d2972bc04 100644 --- a/Terminal.Gui/Input/Key.cs +++ b/Terminal.Gui/Input/Key.cs @@ -487,7 +487,7 @@ public class Key : EventArgs, IEquatable /// Formats a as a string. /// The key to format. - /// The character to use as a separator between modifier keys and and the key itself. + /// The character to use as a separator between modifier keys and the key itself. /// /// The formatted string. If the key is a printable character, it will be returned as a string. Otherwise, the key /// name will be returned. diff --git a/Terminal.Gui/Input/MouseEventEventArgs.cs b/Terminal.Gui/Input/MouseEventEventArgs.cs index 5e0990206..89fc168a7 100644 --- a/Terminal.Gui/Input/MouseEventEventArgs.cs +++ b/Terminal.Gui/Input/MouseEventEventArgs.cs @@ -13,7 +13,7 @@ public class MouseEventEventArgs : EventArgs /// /// Indicates if the current mouse event has already been processed and the driver should stop notifying any other - /// event subscriber. Its important to set this value to true specially when updating any View's layout from inside the + /// event subscriber. It's important to set this value to true specially when updating any View's layout from inside the /// subscriber method. /// /// diff --git a/Terminal.Gui/Resources/config.json b/Terminal.Gui/Resources/config.json index 52256c418..89d0a6dea 100644 --- a/Terminal.Gui/Resources/config.json +++ b/Terminal.Gui/Resources/config.json @@ -3,7 +3,7 @@ // ConfigurationManager. It is automatically loaded, and applied, each time Application.Init // is run (via the ConfiguraitonManager.Reset method). // - // In otherwords, initial values set in the the codebase are always overwritten by the contents of this + // In other words, initial values set in the the codebase are always overwritten by the contents of this // resource embedded in the Terminal.Gui.dll assembly. // // The Unit Test method "ConfigurationManagerTests.SaveDefaults" can be used to re-create the base of this file, but diff --git a/Terminal.Gui/StackExtensions.cs b/Terminal.Gui/StackExtensions.cs index bde15a404..b3e7c01d8 100644 --- a/Terminal.Gui/StackExtensions.cs +++ b/Terminal.Gui/StackExtensions.cs @@ -160,7 +160,7 @@ public static class StackExtensions } } - /// Replaces an stack object values that match with the value to replace. + /// Replaces a stack object values that match with the value to replace. /// The stack object type. /// The stack object. /// Value to replace. diff --git a/Terminal.Gui/Text/Autocomplete/AppendAutocomplete.cs b/Terminal.Gui/Text/Autocomplete/AppendAutocomplete.cs index 76d74f512..f5f7190e6 100644 --- a/Terminal.Gui/Text/Autocomplete/AppendAutocomplete.cs +++ b/Terminal.Gui/Text/Autocomplete/AppendAutocomplete.cs @@ -105,7 +105,7 @@ public class AppendAutocomplete : AutocompleteBase return; } - // draw it like its selected even though its not + // draw it like it's selected, even though it's not Application.Driver.SetAttribute ( new Attribute ( ColorScheme.Normal.Foreground, diff --git a/Terminal.Gui/Text/Autocomplete/PopupAutocomplete.cs b/Terminal.Gui/Text/Autocomplete/PopupAutocomplete.cs index b4264d74b..93e32b12e 100644 --- a/Terminal.Gui/Text/Autocomplete/PopupAutocomplete.cs +++ b/Terminal.Gui/Text/Autocomplete/PopupAutocomplete.cs @@ -322,7 +322,7 @@ public abstract partial class PopupAutocomplete : AutocompleteBase if (PopupInsideContainer) { - // don't overspill horizontally, let's see if can be displayed on the left + // don't overspill horizontally, let's see if it can be displayed on the left if (width > HostControl.Viewport.Width - renderAt.X) { // Verifies that the left limit available is greater than the right limit @@ -339,7 +339,7 @@ public abstract partial class PopupAutocomplete : AutocompleteBase } else { - // don't overspill horizontally, let's see if can be displayed on the left + // don't overspill horizontally, let's see if it can be displayed on the left if (width > top.Viewport.Width - (renderAt.X + HostControl.Frame.X)) { // Verifies that the left limit available is greater than the right limit @@ -408,7 +408,7 @@ public abstract partial class PopupAutocomplete : AutocompleteBase /// /// Called when the user confirms a selection at the current cursor location in the . The - /// string is the full autocomplete word to be inserted. Typically a host will have to + /// string is the full autocomplete word to be inserted. Typically, a host will have to /// remove some characters such that the string completes the word instead of simply being /// appended. /// diff --git a/Terminal.Gui/Text/TextFormatter.cs b/Terminal.Gui/Text/TextFormatter.cs index e3458afe9..994eeb007 100644 --- a/Terminal.Gui/Text/TextFormatter.cs +++ b/Terminal.Gui/Text/TextFormatter.cs @@ -1914,7 +1914,7 @@ public class TextFormatter /// (uses ). if it contains newlines. /// /// - /// This API will return incorrect results if the text includes glyphs who's width is dependent on surrounding + /// This API will return incorrect results if the text includes glyphs whose width is dependent on surrounding /// glyphs (e.g. Arabic). /// /// Text, may contain newlines. @@ -1932,7 +1932,7 @@ public class TextFormatter /// . /// /// - /// This API will return incorrect results if the text includes glyphs who's width is dependent on surrounding + /// This API will return incorrect results if the text includes glyphs whose width is dependent on surrounding /// glyphs (e.g. Arabic). /// /// The text. @@ -1957,7 +1957,7 @@ public class TextFormatter /// Gets the number of the Runes in the text that will fit in . /// - /// This API will return incorrect results if the text includes glyphs who's width is dependent on surrounding + /// This API will return incorrect results if the text includes glyphs whose width is dependent on surrounding /// glyphs (e.g. Arabic). /// /// The text. @@ -1972,7 +1972,7 @@ public class TextFormatter /// Gets the number of the Runes in a list of Runes that will fit in . /// - /// This API will return incorrect results if the text includes glyphs who's width is dependent on surrounding + /// This API will return incorrect results if the text includes glyphs whose width is dependent on surrounding /// glyphs (e.g. Arabic). /// /// The list of runes. @@ -2034,7 +2034,7 @@ public class TextFormatter /// Gets the index position from the list based on the . /// - /// This API will return incorrect results if the text includes glyphs who's width is dependent on surrounding + /// This API will return incorrect results if the text includes glyphs whose width is dependent on surrounding /// glyphs (e.g. Arabic). /// /// The lines. @@ -2067,7 +2067,7 @@ public class TextFormatter /// Calculates the rectangle required to hold text, assuming no word wrapping or alignment. /// - /// This API will return incorrect results if the text includes glyphs who's width is dependent on surrounding + /// This API will return incorrect results if the text includes glyphs whose width is dependent on surrounding /// glyphs (e.g. Arabic). /// /// The x location of the rectangle diff --git a/Terminal.Gui/View/Adornment/Border.cs b/Terminal.Gui/View/Adornment/Border.cs index aa4dd2066..076ec74cb 100644 --- a/Terminal.Gui/View/Adornment/Border.cs +++ b/Terminal.Gui/View/Adornment/Border.cs @@ -74,7 +74,7 @@ public class Border : Adornment public override void BeginInit () { #if HOVER - // TOOD: Hack - make Arragnement overidable + // TOOD: Hack - make Arrangement overridable if ((Parent?.Arrangement & ViewArrangement.Movable) != 0) { HighlightStyle |= HighlightStyle.Hover; diff --git a/Terminal.Gui/View/Layout/ViewLayout.cs b/Terminal.Gui/View/Layout/ViewLayout.cs index 6a4cbcf02..60e405e84 100644 --- a/Terminal.Gui/View/Layout/ViewLayout.cs +++ b/Terminal.Gui/View/Layout/ViewLayout.cs @@ -668,6 +668,7 @@ public partial class View /// behavior of this method is indeterminate if is . /// /// Raises the event before it returns. + /// Raises the event before it returns. /// public virtual void LayoutSubviews () { @@ -755,7 +756,7 @@ public partial class View // TODO: Identify a real-world use-case where this API should be virtual. // TODO: Until then leave it `internal` and non-virtual - // Determine our container's ContentSize - + // Determine our container's ContentSize - // First try SuperView.Viewport, then Application.Top, then Driver.Viewport. // Finally, if none of those are valid, use 2048 (for Unit tests). Size superViewContentSize = SuperView is { IsInitialized: true } ? SuperView.GetContentSize () : diff --git a/Terminal.Gui/View/View.cs b/Terminal.Gui/View/View.cs index 1e016e8ae..68eb1853f 100644 --- a/Terminal.Gui/View/View.cs +++ b/Terminal.Gui/View/View.cs @@ -268,7 +268,7 @@ public partial class View : Responder, ISupportInitializeNotification EndInitAdornments (); - // TODO: Move these into ViewText.cs as EndInit_Text() to consolodate. + // TODO: Move these into ViewText.cs as EndInit_Text() to consolidate. // TODO: Verify UpdateTextDirection really needs to be called here. // These calls were moved from BeginInit as they access Viewport which is indeterminate until EndInit is called. UpdateTextDirection (TextDirection); diff --git a/Terminal.Gui/View/ViewEventArgs.cs b/Terminal.Gui/View/ViewEventArgs.cs index 4646746d6..b17b98afe 100644 --- a/Terminal.Gui/View/ViewEventArgs.cs +++ b/Terminal.Gui/View/ViewEventArgs.cs @@ -67,7 +67,7 @@ public class FocusEventArgs : EventArgs /// /// Indicates if the current focus event has already been processed and the driver should stop notifying any other - /// event subscriber. Its important to set this value to true specially when updating any View's layout from inside the + /// event subscriber. It's important to set this value to true specially when updating any View's layout from inside the /// subscriber method. /// public bool Handled { get; set; } diff --git a/Terminal.Gui/View/ViewKeyboard.cs b/Terminal.Gui/View/ViewKeyboard.cs index 127c3fac9..d103d894d 100644 --- a/Terminal.Gui/View/ViewKeyboard.cs +++ b/Terminal.Gui/View/ViewKeyboard.cs @@ -57,8 +57,7 @@ public partial class View /// Gets or sets the hot key defined for this view. Pressing the hot key on the keyboard while this view has focus will /// invoke the and commands. /// causes the view to be focused and does nothing. By default, the HotKey is - /// automatically set to the first character of that is prefixed with with - /// . + /// automatically set to the first character of that is prefixed with . /// /// A HotKey is a keypress that selects a visible UI item. For selecting items across `s (e.g.a /// in a ) the keypress must include the @@ -741,11 +740,11 @@ public partial class View return false; } - // TODO: This is a "prototype" debug check. It may be too annyoing vs. useful. - // TODO: A better approach would be have Application hold a list of bound Hotkeys, similar to + // TODO: This is a "prototype" debug check. It may be too annoying vs. useful. + // TODO: A better approach would be to have Application hold a list of bound Hotkeys, similar to // TODO: how Application holds a list of Application Scoped key bindings and then check that list. /// - /// Returns true if Key is bound in this view heirarchy. For debugging + /// Returns true if Key is bound in this view hierarchy. For debugging /// /// The key to test. /// Returns the view the key is bound to. @@ -808,8 +807,8 @@ public partial class View Debug.WriteLine ($"WARNING: InvokeKeyBindings ({key}) - An Application scope binding exists for this key. The registered view will not invoke Command.{commandBinding.Commands [0]}: {boundView}."); } - // TODO: This is a "prototype" debug check. It may be too annyoing vs. useful. - // Scour the bindings up our View heirarchy + // TODO: This is a "prototype" debug check. It may be too annoying vs. useful. + // Scour the bindings up our View hierarchy // to ensure that the key is not already bound to a different set of commands. if (SuperView?.IsHotKeyKeyBound (key, out View previouslyBoundView) ?? false) { diff --git a/Terminal.Gui/Views/ComboBox.cs b/Terminal.Gui/Views/ComboBox.cs index b98cceb7e..e4e71c97d 100644 --- a/Terminal.Gui/Views/ComboBox.cs +++ b/Terminal.Gui/Views/ComboBox.cs @@ -118,10 +118,10 @@ public class ComboBox : View, IDesignable set => _hideDropdownListOnClick = _listview.HideDropdownListOnClick = value; } - /// Gets the drop down list state, expanded or collapsed. + /// Gets the drop-down list state, expanded or collapsed. public bool IsShow { get; private set; } - /// If set to true its not allow any changes in the text. + /// If set to true, no changes to the text will be allowed. public bool ReadOnly { get => _search.ReadOnly; @@ -200,7 +200,7 @@ public class ComboBox : View, IDesignable } /// - /// Collapses the drop down list. Returns true if the state chagned or false if it was already collapsed and no + /// Collapses the drop-down list. Returns true if the state changed or false if it was already collapsed and no /// action was taken /// public virtual bool Collapse () @@ -220,7 +220,7 @@ public class ComboBox : View, IDesignable public event EventHandler Collapsed; /// - /// Expands the drop down list. Returns true if the state chagned or false if it was already expanded and no + /// Expands the drop-down list. Returns true if the state changed or false if it was already expanded and no /// action was taken /// public virtual bool Expand () @@ -398,7 +398,7 @@ public class ComboBox : View, IDesignable /// Internal height of dynamic search list /// - private int CalculatetHeight () + private int CalculateHeight () { if (!IsInitialized || Viewport.Height == 0) { @@ -617,7 +617,7 @@ public class ComboBox : View, IDesignable || (_autoHide && Viewport.Width > 0 && _search.Frame.Width != Viewport.Width - 1)) { _search.Width = _listview.Width = _autoHide ? Viewport.Width - 1 : Viewport.Width; - _listview.Height = CalculatetHeight (); + _listview.Height = CalculateHeight (); _search.SetRelativeLayout (GetContentSize ()); _listview.SetRelativeLayout (GetContentSize ()); } @@ -634,7 +634,7 @@ public class ComboBox : View, IDesignable ResetSearchSet (); _listview.SetSource (_searchSet); - _listview.Height = CalculatetHeight (); + _listview.Height = CalculateHeight (); if (Subviews.Count > 0 && HasFocus) { @@ -769,7 +769,7 @@ public class ComboBox : View, IDesignable private void SetValue (object text, bool isFromSelectedItem = false) { - // TOOD: THe fact we have to suspend events to change the text makes this feel very hacky. + // TOOD: The fact we have to suspend events to change the text makes this feel very hacky. _search.TextChanged -= Search_Changed; // Note we set _text, to avoid set_Text from setting _search.Text again _text = _search.Text = text.ToString (); @@ -792,7 +792,7 @@ public class ComboBox : View, IDesignable _listview.ResumeSuspendCollectionChangedEvent (); _listview.Clear (); - _listview.Height = CalculatetHeight (); + _listview.Height = CalculateHeight (); SuperView?.BringSubviewToFront (this); } diff --git a/Terminal.Gui/Views/DateField.cs b/Terminal.Gui/Views/DateField.cs index 7677ba863..9627b2558 100644 --- a/Terminal.Gui/Views/DateField.cs +++ b/Terminal.Gui/Views/DateField.cs @@ -201,10 +201,10 @@ public class DateField : TextField } spaces += FormatLength; - string trimedText = e.NewValue [..spaces]; + string trimmedText = e.NewValue [..spaces]; spaces -= FormatLength; - trimedText = trimedText.Replace (new string (' ', spaces), " "); - var date = Convert.ToDateTime (trimedText).ToString (_format.Trim ()); + trimmedText = trimmedText.Replace (new string (' ', spaces), " "); + var date = Convert.ToDateTime (trimmedText).ToString (_format.Trim ()); if ($" {date}" != e.NewValue) { @@ -542,8 +542,8 @@ public class DateField : TextField return true; } - // Converts various date formats to a uniform 10-character format. - // This aids in simplifying the handling of single-digit months and days, + // Converts various date formats to a uniform 10-character format. + // This aids in simplifying the handling of single-digit months and days, // and reduces the number of distinct date formats to maintain. private static string StandardizeDateFormat (string format) { diff --git a/Terminal.Gui/Views/FileDialog.cs b/Terminal.Gui/Views/FileDialog.cs index fcdd2d6d2..ad478f6dd 100644 --- a/Terminal.Gui/Views/FileDialog.cs +++ b/Terminal.Gui/Views/FileDialog.cs @@ -590,7 +590,7 @@ public class FileDialog : Dialog { FileSystemInfoStats [] stats = State?.Children ?? new FileSystemInfoStats[0]; - // This portion is never reordered (aways .. at top then folders) + // This portion is never reordered (always .. at top then folders) IOrderedEnumerable forcedOrder = stats .OrderByDescending (f => f.IsParent) .ThenBy (f => f.IsDir ? -1 : 100); @@ -670,7 +670,7 @@ public class FileDialog : Dialog return; } - // Don't include ".." (IsParent) in multiselections + // Don't include ".." (IsParent) in multi-selections MultiSelected = toMultiAccept .Where (s => !s.IsParent) .Select (s => s.FileSystemInfo.FullName) diff --git a/Terminal.Gui/Views/GraphView/Axis.cs b/Terminal.Gui/Views/GraphView/Axis.cs index 7e7561b76..efff79ce9 100644 --- a/Terminal.Gui/Views/GraphView/Axis.cs +++ b/Terminal.Gui/Views/GraphView/Axis.cs @@ -80,7 +80,7 @@ public abstract class Axis private string DefaultLabelGetter (AxisIncrementToRender toRender) { return toRender.Value.ToString ("N0"); } } -/// The horizontal (x axis) of a +/// The horizontal (x-axis) of a public class HorizontalAxis : Axis { /// @@ -132,7 +132,7 @@ public class HorizontalAxis : Axis } } - /// Draws the horizontal x axis labels and ticks + /// Draws the horizontal x-axis labels and ticks public override void DrawAxisLabels (GraphView graph) { if (!Visible || Increment == 0) @@ -180,10 +180,10 @@ public class HorizontalAxis : Axis int y = GetAxisYPosition (graph); - // start the x axis at left of screen (either 0 or margin) + // start the x-axis at left of screen (either 0 or margin) var xStart = (int)graph.MarginLeft; - // but if the x axis has a minmum (minimum is in graph space units) + // but if the x-axis has a minimum (minimum is in graph space units) if (Minimum.HasValue) { // start at the screen location of the minimum @@ -257,7 +257,7 @@ public class HorizontalAxis : Axis // Not every increment has to have a label if (ShowLabelsEvery != 0) { - // if this increment does also needs a label + // if this increment also needs a label if (labels++ % ShowLabelsEvery == 0) { toRender.Text = LabelGetter (toRender); @@ -403,7 +403,7 @@ public class VerticalAxis : Axis // draw down the screen (0 is top of screen) // end at the bottom of the screen - //unless there is a minimum + //unless there is a minimum if (Minimum.HasValue) { return graph.GraphSpaceToScreen (new PointF (0, Minimum.Value)).Y; diff --git a/Terminal.Gui/Views/GraphView/Series.cs b/Terminal.Gui/Views/GraphView/Series.cs index c117bd0a2..f0974556c 100644 --- a/Terminal.Gui/Views/GraphView/Series.cs +++ b/Terminal.Gui/Views/GraphView/Series.cs @@ -51,7 +51,7 @@ public class MultiBarSeries : ISeries /// Creates a new series of clustered bars. /// Each category has this many bars - /// How far appart to put each category (in graph space) + /// How far apart to put each category (in graph space) /// /// How much spacing between bars in a category (should be less than / /// ) @@ -97,7 +97,7 @@ public class MultiBarSeries : ISeries /// /// Sub collections. Each series contains the bars for a different category. Thus SubSeries[0].Bars[0] is the - /// first bar on the axis and SubSeries[1].Bars[0] is the second etc + /// first bar on the axis and SubSeries[1].Bars[0] is the second etc. /// public IReadOnlyCollection SubSeries => new ReadOnlyCollection (subSeries); @@ -191,7 +191,7 @@ public class BarSeries : ISeries { screenStart.X = graph.AxisY.GetAxisXPosition (graph); - // dont draw bar off the right of the control + // don't draw bar off the right of the control screenEnd.X = Math.Min (graph.Viewport.Width - 1, screenEnd.X); // if bar is off the screen @@ -205,7 +205,7 @@ public class BarSeries : ISeries // Start the axis screenStart.Y = graph.AxisX.GetAxisYPosition (graph); - // dont draw bar up above top of control + // don't draw bar up above top of control screenEnd.Y = Math.Max (0, screenEnd.Y); // if bar is off the screen diff --git a/Terminal.Gui/Views/HexView.cs b/Terminal.Gui/Views/HexView.cs index 40e4e9030..e96eceb17 100644 --- a/Terminal.Gui/Views/HexView.cs +++ b/Terminal.Gui/Views/HexView.cs @@ -130,7 +130,7 @@ public class HexView : View } /// - /// Sets or gets the offset into the that will displayed at the top of the + /// Sets or gets the offset into the that will be displayed at the top of the /// /// /// The display start. @@ -557,9 +557,9 @@ public class HexView : View } // - // This is used to support editing of the buffer on a peer List<>, + // This is used to support editing of the buffer on a peer List<>, // the offset corresponds to an offset relative to DisplayStart, and - // the buffer contains the contents of a screenful of data, so the + // the buffer contains the contents of a screenful of data, so the // offset is relative to the buffer. // // diff --git a/Terminal.Gui/Views/Menu/ContextMenu.cs b/Terminal.Gui/Views/Menu/ContextMenu.cs index 226af1f91..e2b2127ac 100644 --- a/Terminal.Gui/Views/Menu/ContextMenu.cs +++ b/Terminal.Gui/Views/Menu/ContextMenu.cs @@ -18,7 +18,7 @@ /// Callers can cause the ContextMenu to be activated on a right-mouse click (or other interaction) by calling /// . /// -/// ContextMenus are located using screen using screen coordinates and appear above all other Views. +/// ContextMenus are located using screen coordinates and appear above all other Views. /// public sealed class ContextMenu : IDisposable { diff --git a/Terminal.Gui/Views/Menu/Menu.cs b/Terminal.Gui/Views/Menu/Menu.cs index 2da69bc01..34e8dab30 100644 --- a/Terminal.Gui/Views/Menu/Menu.cs +++ b/Terminal.Gui/Views/Menu/Menu.cs @@ -282,7 +282,7 @@ internal sealed class Menu : View return true; } - // TODO: Determine if there's a cleaner way to handle this + // TODO: Determine if there's a cleaner way to handle this. // This supports the case where the menu bar is a context menu return _host.OnInvokingKeyBindings (keyEvent, scope); } diff --git a/Terminal.Gui/Views/Menu/MenuBar.cs b/Terminal.Gui/Views/Menu/MenuBar.cs index 00247a613..530b2ba9b 100644 --- a/Terminal.Gui/Views/Menu/MenuBar.cs +++ b/Terminal.Gui/Views/Menu/MenuBar.cs @@ -317,7 +317,7 @@ public class MenuBar : View, IDesignable /// Virtual method that will invoke the . /// The current menu to be closed. - /// Whether the current menu will be reopen. + /// Whether the current menu will be reopened. /// Whether is a sub-menu or not. public virtual MenuClosingEventArgs OnMenuClosing (MenuBarItem currentMenu, bool reopen, bool isSubMenu) { diff --git a/Terminal.Gui/Views/MessageBox.cs b/Terminal.Gui/Views/MessageBox.cs index 97fcf9452..5d583250b 100644 --- a/Terminal.Gui/Views/MessageBox.cs +++ b/Terminal.Gui/Views/MessageBox.cs @@ -434,7 +434,7 @@ public static class MessageBox } } - // Run the modal; do not shutdown the mainloop driver when done + // Run the modal; do not shut down the mainloop driver when done Application.Run (d); d.Dispose (); diff --git a/Terminal.Gui/Views/SelectedItemChangedArgs.cs b/Terminal.Gui/Views/SelectedItemChangedArgs.cs index 10c1a9ca3..a2f5eb47c 100644 --- a/Terminal.Gui/Views/SelectedItemChangedArgs.cs +++ b/Terminal.Gui/Views/SelectedItemChangedArgs.cs @@ -1,6 +1,6 @@ namespace Terminal.Gui; -/// Event arguments for the SelectedItemChagned event. +/// Event arguments for the SelectedItemChanged event. public class SelectedItemChangedArgs : EventArgs { /// Initializes a new class. diff --git a/Terminal.Gui/Views/Slider.cs b/Terminal.Gui/Views/Slider.cs index 1b96bda0d..61ac401d6 100644 --- a/Terminal.Gui/Views/Slider.cs +++ b/Terminal.Gui/Views/Slider.cs @@ -396,7 +396,7 @@ public class Slider : View /// Causes the specified option to be set and be focused. public bool SetOption (int optionIndex) { - // TODO: Handle range type. + // TODO: Handle range type. // Note: Maybe return false only when optionIndex doesn't exist, otherwise true. if (!_setOptions.Contains (optionIndex) && optionIndex >= 0 && optionIndex < _options.Count) @@ -1285,9 +1285,9 @@ public class Slider : View protected internal override bool OnMouseEvent (MouseEvent mouseEvent) { // Note(jmperricone): Maybe we click to focus the cursor, and on next click we set the option. - // That will makes OptionFocused Event more relevant. + // That will make OptionFocused Event more relevant. // (tig: I don't think so. Maybe an option if someone really wants it, but for now that - // adss to much friction to UI. + // adds too much friction to UI. // TODO(jmperricone): Make Range Type work with mouse. if (!(mouseEvent.Flags.HasFlag (MouseFlags.Button1Clicked) @@ -1325,7 +1325,7 @@ public class Slider : View var success = false; var option = 0; - // how far has user dragged from original location? + // how far has user dragged from original location? if (Orientation == Orientation.Horizontal) { success = TryGetOptionByPosition (mouseEvent.Position.X, 0, Math.Max (0, _config._cachedInnerSpacing / 2), out option); diff --git a/Terminal.Gui/Views/SliderOption.cs b/Terminal.Gui/Views/SliderOption.cs index 1cfcc1f07..a3d10781d 100644 --- a/Terminal.Gui/Views/SliderOption.cs +++ b/Terminal.Gui/Views/SliderOption.cs @@ -15,7 +15,7 @@ public class SliderOption Data = data; } - /// Event fired when the an option has changed. + /// Event fired when an option has changed. public event EventHandler Changed; /// Custom data of the option. diff --git a/Terminal.Gui/Views/Tab.cs b/Terminal.Gui/Views/Tab.cs index a5288f70a..3fe2d0a68 100644 --- a/Terminal.Gui/Views/Tab.cs +++ b/Terminal.Gui/Views/Tab.cs @@ -5,7 +5,7 @@ public class Tab : View { private string _displayText; - /// Creates a new unamed tab with no controls inside. + /// Creates a new unnamed tab with no controls inside. public Tab () { BorderStyle = LineStyle.Rounded; @@ -16,7 +16,7 @@ public class Tab : View /// public string DisplayText { - get => _displayText ?? "Unamed"; + get => _displayText ?? "Unnamed"; set => _displayText = value; } diff --git a/Terminal.Gui/Views/TabView.cs b/Terminal.Gui/Views/TabView.cs index 095b73582..04f1773c1 100644 --- a/Terminal.Gui/Views/TabView.cs +++ b/Terminal.Gui/Views/TabView.cs @@ -1296,7 +1296,7 @@ public class TabView : View { if (_host.Focused == this) { - // if focus is the tab bar ourself then show that they can switch tabs + // if focus is the tab bar itself then show that they can switch tabs prevAttr = ColorScheme.HotFocus; } else diff --git a/Terminal.Gui/Views/TableView/EnumerableTableSource.cs b/Terminal.Gui/Views/TableView/EnumerableTableSource.cs index 251a5afeb..327cdaf5c 100644 --- a/Terminal.Gui/Views/TableView/EnumerableTableSource.cs +++ b/Terminal.Gui/Views/TableView/EnumerableTableSource.cs @@ -5,7 +5,7 @@ public class EnumerableTableSource : IEnumerableTableSource { private readonly T [] data; - private readonly Dictionary> lamdas; + private readonly Dictionary> lambdas; /// Creates a new instance of the class that presents collection as a table. /// @@ -29,14 +29,14 @@ public class EnumerableTableSource : IEnumerableTableSource { this.data = data.ToArray (); ColumnNames = columnDefinitions.Keys.ToArray (); - lamdas = columnDefinitions; + lambdas = columnDefinitions; } /// Gets the object collection hosted by this wrapper. public IReadOnlyCollection Data => data.AsReadOnly (); /// - public object this [int row, int col] => lamdas [ColumnNames [col]] (data [row]); + public object this [int row, int col] => lambdas [ColumnNames [col]] (data [row]); /// public int Rows => data.Length; diff --git a/Terminal.Gui/Views/TableView/TableView.cs b/Terminal.Gui/Views/TableView/TableView.cs index 7081106a4..0807991d5 100644 --- a/Terminal.Gui/Views/TableView/TableView.cs +++ b/Terminal.Gui/Views/TableView/TableView.cs @@ -1438,13 +1438,13 @@ public class TableView : View // is there enough space to meet the MinAcceptableWidth availableHorizontalSpace - usedSpace >= colStyle.MinAcceptableWidth) { - // show column and use use whatever space is + // show column and use whatever space is // left for rendering it showColumn = true; colWidth = availableHorizontalSpace - usedSpace; } - // If its the only column we are able to render then + // If it's the only column we are able to render then // accept it anyway (that must be one massively wide column!) if (first) { @@ -1674,7 +1674,7 @@ public class TableView : View } else if (Style.ExpandLastColumn == false && columnsToRender.Any (r => r.IsVeryLast && r.X + r.Width - 1 == c)) { - // if the next console column is the lastcolumns end + // if the next console column is the last column's end rune = Glyphs.BottomTee; } } @@ -1748,7 +1748,7 @@ public class TableView : View rune = Glyphs.URCorner; } - // if the next console column is the lastcolumns end + // if the next console column is the last column's end else if (Style.ExpandLastColumn == false && columnsToRender.Any (r => r.IsVeryLast && r.X + r.Width - 1 == c)) { rune = Glyphs.TopTee; @@ -1841,7 +1841,7 @@ public class TableView : View } } - // if the next console column is the lastcolumns end + // if the next console column is the last column's end else if (Style.ExpandLastColumn == false && columnsToRender.Any (r => r.IsVeryLast && r.X + r.Width - 1 == c)) { rune = Style.ShowVerticalCellLines ? Glyphs.Cross : Glyphs.BottomTee; diff --git a/Terminal.Gui/Views/TableView/TreeTableSource.cs b/Terminal.Gui/Views/TableView/TreeTableSource.cs index 5256949c9..f2cab6509 100644 --- a/Terminal.Gui/Views/TableView/TreeTableSource.cs +++ b/Terminal.Gui/Views/TableView/TreeTableSource.cs @@ -4,7 +4,7 @@ namespace Terminal.Gui; /// public class TreeTableSource : IEnumerableTableSource, IDisposable where T : class { - private readonly Dictionary> _lamdas; + private readonly Dictionary> _lambdas; private readonly TableView _tableView; private readonly TreeView _tree; @@ -47,7 +47,7 @@ public class TreeTableSource : IEnumerableTableSource, IDisposable where T ColumnNames = colList.ToArray (); - _lamdas = subsequentColumns; + _lambdas = subsequentColumns; } /// @@ -60,13 +60,13 @@ public class TreeTableSource : IEnumerableTableSource, IDisposable where T /// public object this [int row, int col] => - col == 0 ? GetColumnZeroRepresentationFromTree (row) : _lamdas [ColumnNames [col]] (RowToObject (row)); + col == 0 ? GetColumnZeroRepresentationFromTree (row) : _lambdas [ColumnNames [col]] (RowToObject (row)); /// public int Rows => _tree.BuildLineMap ().Count; /// - public int Columns => _lamdas.Count + 1; + public int Columns => _lambdas.Count + 1; /// public string [] ColumnNames { get; } diff --git a/Terminal.Gui/Views/TextField.cs b/Terminal.Gui/Views/TextField.cs index a4e220966..bdcb92dd5 100644 --- a/Terminal.Gui/Views/TextField.cs +++ b/Terminal.Gui/Views/TextField.cs @@ -1105,7 +1105,7 @@ public class TextField : View } /// Virtual method that invoke the event if it's defined. - /// The event arguments.. + /// The event arguments. /// if the event was cancelled. public bool OnTextChanging (CancelEventArgs args) { diff --git a/Terminal.Gui/Views/TextView.cs b/Terminal.Gui/Views/TextView.cs index 62cce0b87..bea620aee 100644 --- a/Terminal.Gui/Views/TextView.cs +++ b/Terminal.Gui/Views/TextView.cs @@ -334,7 +334,7 @@ internal class TextModel { lastValidCol = nCol; - if (runeType == RuneType.IsWhiteSpace || runeType == RuneType.IsUnknow) + if (runeType == RuneType.IsWhiteSpace || runeType == RuneType.IsUnknown) { runeType = GetRuneType (nRune); } @@ -1063,7 +1063,7 @@ internal class TextModel return RuneType.IsPunctuation; } - return RuneType.IsUnknow; + return RuneType.IsUnknown; } private bool IsSameRuneType (Rune newRune, RuneType runeType) @@ -1255,7 +1255,7 @@ internal class TextModel IsWhiteSpace, IsLetterOrDigit, IsPunctuation, - IsUnknow + IsUnknown } } @@ -1772,8 +1772,8 @@ internal class WordWrapManager nCol = 0; nStartRow = 0; nStartCol = 0; - bool isRowAndColSetted = row == 0 && col == 0; - bool isStartRowAndColSetted = startRow == 0 && startCol == 0; + bool isRowAndColSet = row == 0 && col == 0; + bool isStartRowAndColSet = startRow == 0 && startCol == 0; List wModelLines = new (); for (var i = 0; i < Model.Count; i++) @@ -1796,7 +1796,7 @@ internal class WordWrapManager { List wrapLine = wrappedLines [j]; - if (!isRowAndColSetted && modelRow == i) + if (!isRowAndColSet && modelRow == i) { if (nCol + wrapLine.Count <= modelCol) { @@ -1806,12 +1806,12 @@ internal class WordWrapManager if (nCol == modelCol) { nCol = wrapLine.Count; - isRowAndColSetted = true; + isRowAndColSet = true; } else if (j == wrappedLines.Count - 1) { nCol = wrapLine.Count - j + modelCol - nCol; - isRowAndColSetted = true; + isRowAndColSet = true; } } else @@ -1819,11 +1819,11 @@ internal class WordWrapManager int offset = nCol + wrapLine.Count - modelCol; nCol = wrapLine.Count - offset; nRow = lines; - isRowAndColSetted = true; + isRowAndColSet = true; } } - if (!isStartRowAndColSetted && modelStartRow == i) + if (!isStartRowAndColSet && modelStartRow == i) { if (nStartCol + wrapLine.Count <= modelStartCol) { @@ -1833,12 +1833,12 @@ internal class WordWrapManager if (nStartCol == modelStartCol) { nStartCol = wrapLine.Count; - isStartRowAndColSetted = true; + isStartRowAndColSet = true; } else if (j == wrappedLines.Count - 1) { nStartCol = wrapLine.Count - j + modelStartCol - nStartCol; - isStartRowAndColSetted = true; + isStartRowAndColSet = true; } } else @@ -1846,7 +1846,7 @@ internal class WordWrapManager int offset = nStartCol + wrapLine.Count - modelStartCol; nStartCol = wrapLine.Count - offset; nStartRow = lines; - isStartRowAndColSetted = true; + isStartRowAndColSet = true; } } @@ -2547,14 +2547,14 @@ public class TextView : View if (_allowsReturn && !_multiline) { - // BUGBUG: Seting properties should not have side-effects like this. Multiline and AllowsReturn should be independent. + // BUGBUG: Setting properties should not have side-effects like this. Multiline and AllowsReturn should be independent. Multiline = true; } if (!_allowsReturn && _multiline) { Multiline = false; - // BUGBUG: Seting properties should not have side-effects like this. Multiline and AlowsTab should be independent. + // BUGBUG: Setting properties should not have side-effects like this. Multiline and AllowsTab should be independent. AllowsTab = false; } diff --git a/Terminal.Gui/Views/TileView.cs b/Terminal.Gui/Views/TileView.cs index 78ffd9b5f..54ec8a4d2 100644 --- a/Terminal.Gui/Views/TileView.cs +++ b/Terminal.Gui/Views/TileView.cs @@ -935,7 +935,7 @@ public class TileView : View { // Continue Drag - // how far has user dragged from original location? + // how far has user dragged from original location? if (Orientation == Orientation.Horizontal) { int dy = mouseEvent.Position.Y - dragPosition.Value.Y; diff --git a/Terminal.Gui/Views/TimeField.cs b/Terminal.Gui/Views/TimeField.cs index b7aad9fec..5f303cc98 100644 --- a/Terminal.Gui/Views/TimeField.cs +++ b/Terminal.Gui/Views/TimeField.cs @@ -449,13 +449,13 @@ public class TimeField : TextField } spaces += FieldLength; - string trimedText = e.NewValue [..spaces]; + string trimmedText = e.NewValue [..spaces]; spaces -= FieldLength; - trimedText = trimedText.Replace (new string (' ', spaces), " "); + trimmedText = trimmedText.Replace (new string (' ', spaces), " "); - if (trimedText != e.NewValue) + if (trimmedText != e.NewValue) { - e.NewValue = trimedText; + e.NewValue = trimmedText; } if (!TimeSpan.TryParseExact ( diff --git a/Terminal.Gui/Views/TreeView/Branch.cs b/Terminal.Gui/Views/TreeView/Branch.cs index 7619a815f..0b37314cd 100644 --- a/Terminal.Gui/Views/TreeView/Branch.cs +++ b/Terminal.Gui/Views/TreeView/Branch.cs @@ -93,7 +93,7 @@ internal class Branch where T : class tree.Move (0, y); - // if we have scrolled to the right then bits of the prefix will have dispeared off the screen + // if we have scrolled to the right then bits of the prefix will have disappeared off the screen int toSkip = tree.ScrollOffsetHorizontal; Attribute attr = symbolColor; @@ -329,7 +329,7 @@ internal class Branch where T : class Parent?.Refresh (true); } - // we don't want to loose the state of our children so lets be selective about how we refresh + // we don't want to lose the state of our children so lets be selective about how we refresh //if we don't know about any children yet just use the normal method if (ChildBranches is null) { @@ -347,7 +347,7 @@ internal class Branch where T : class { ChildBranches.Remove (toRemove); - //also if the user has this node selected (its disapearing) so lets change selection to us (the parent object) to be helpful + //also if the user has this node selected (its disappearing) so lets change selection to us (the parent object) to be helpful if (Equals (tree.SelectedObject, toRemove)) { tree.SelectedObject = Model; @@ -357,14 +357,14 @@ internal class Branch where T : class // New children need to be added foreach (T newChild in newChildren) { - // If we don't know about the child yet we need a new branch + // If we don't know about the child, yet we need a new branch if (!ChildBranches.ContainsKey (newChild)) { ChildBranches.Add (newChild, new Branch (tree, this, newChild)); } else { - //we already have this object but update the reference anyway incase Equality match but the references are new + //we already have this object but update the reference anyway in case Equality match but the references are new ChildBranches [newChild].Model = newChild; } } @@ -486,7 +486,7 @@ internal class Branch where T : class { if (IsExpanded) { - //if we are expanded we need to updatethe visible children + // if we are expanded we need to update the visible children foreach (KeyValuePair> child in ChildBranches) { child.Value.Rebuild (); @@ -515,7 +515,7 @@ internal class Branch where T : class } /// - /// Returns true if this branch has parents and it is the last node of it's parents branches (or last root of the + /// Returns true if this branch has parents, and it is the last node of its parents branches (or last root of the /// tree). /// /// diff --git a/Terminal.Gui/Views/TreeView/DrawTreeViewLineEventArgs.cs b/Terminal.Gui/Views/TreeView/DrawTreeViewLineEventArgs.cs index f0a9e5e7e..1454abff7 100644 --- a/Terminal.Gui/Views/TreeView/DrawTreeViewLineEventArgs.cs +++ b/Terminal.Gui/Views/TreeView/DrawTreeViewLineEventArgs.cs @@ -19,7 +19,7 @@ public class DrawTreeViewLineEventArgs where T : class /// /// The notional index in which contains the first character of the - /// text (i.e. after all branch lines and expansion/collapse sybmols). + /// text (i.e. after all branch lines and expansion/collapse symbols). /// /// May be negative or outside of bounds of if the view has been scrolled horizontally. public int IndexOfModelText { get; init; } diff --git a/Terminal.Gui/Views/TreeView/TreeNode.cs b/Terminal.Gui/Views/TreeView/TreeNode.cs index e996beb50..351e61620 100644 --- a/Terminal.Gui/Views/TreeView/TreeNode.cs +++ b/Terminal.Gui/Views/TreeView/TreeNode.cs @@ -1,7 +1,7 @@ namespace Terminal.Gui; /// -/// Interface to implement when you want the regular (non generic) to automatically +/// Interface to implement when you want the regular (non-generic) to automatically /// determine children for your class (without having to specify an ) /// public interface ITreeNode @@ -17,7 +17,7 @@ public interface ITreeNode string Text { get; set; } } -/// Simple class for representing nodes, use with regular (non generic) . +/// Simple class for representing nodes, use with regular (non-generic) . public class TreeNode : ITreeNode { /// Initialises a new instance with no @@ -39,5 +39,5 @@ public class TreeNode : ITreeNode /// returns /// - public override string ToString () { return Text ?? "Unamed Node"; } + public override string ToString () { return Text ?? "Unnamed Node"; } } diff --git a/Terminal.Gui/Views/TreeView/TreeStyle.cs b/Terminal.Gui/Views/TreeView/TreeStyle.cs index df8772dbd..0b560f2a9 100644 --- a/Terminal.Gui/Views/TreeView/TreeStyle.cs +++ b/Terminal.Gui/Views/TreeView/TreeStyle.cs @@ -29,7 +29,7 @@ public class TreeStyle public bool InvertExpandSymbolColors { get; set; } /// - /// to leave the last row of the control free for overwritting (e.g. by a scrollbar) When + /// to leave the last row of the control free for overwriting (e.g. by a scrollbar) When /// scrolling will be triggered on the second last row of the control rather than. the last. /// /// diff --git a/Terminal.Gui/Views/TreeView/TreeView.cs b/Terminal.Gui/Views/TreeView/TreeView.cs index d2e3d0293..f2039d9c6 100644 --- a/Terminal.Gui/Views/TreeView/TreeView.cs +++ b/Terminal.Gui/Views/TreeView/TreeView.cs @@ -35,7 +35,7 @@ public class TreeView : TreeView public TreeView () { TreeBuilder = new TreeNodeBuilder (); - AspectGetter = o => o is null ? "Null" : o.Text ?? o?.ToString () ?? "Unamed Node"; + AspectGetter = o => o is null ? "Null" : o.Text ?? o?.ToString () ?? "Unnamed Node"; } } @@ -72,7 +72,7 @@ public class TreeView : View, ITreeView where T : class private T selectedObject; /// - /// Creates a new tree view with absolute positioning. Use to set set + /// Creates a new tree view with absolute positioning. Use to set /// root objects for the tree. Children will not be rendered until you set . /// public TreeView () @@ -299,7 +299,7 @@ public class TreeView : View, ITreeView where T : class /// /// Initialises .Creates a new tree view with absolute positioning. Use - /// to set set root objects for the tree. + /// to set root objects for the tree. /// public TreeView (ITreeBuilder builder) : this () { TreeBuilder = builder; } @@ -315,7 +315,7 @@ public class TreeView : View, ITreeView where T : class public AspectGetterDelegate AspectGetter { get; set; } = o => o.ToString () ?? ""; /// - /// Delegate for multi colored tree views. Return the to use for each passed object or + /// Delegate for multi-colored tree views. Return the to use for each passed object or /// null to use the default. /// public Func ColorGetter { get; set; } @@ -374,7 +374,7 @@ public class TreeView : View, ITreeView where T : class /// The amount of tree view that has been scrolled off the top of the screen (by the user scrolling down). /// - /// Setting a value of less than 0 will result in a offset of 0. To see changes in the UI call + /// Setting a value of less than 0 will result in an offset of 0. To see changes in the UI call /// . /// public int ScrollOffsetVertical @@ -402,7 +402,7 @@ public class TreeView : View, ITreeView where T : class } } - /// Determines how sub branches of the tree are dynamically built at runtime as the user expands root nodes. + /// Determines how sub-branches of the tree are dynamically built at runtime as the user expands root nodes. /// public ITreeBuilder TreeBuilder { get; set; } @@ -500,7 +500,7 @@ public class TreeView : View, ITreeView where T : class /// public void AdjustSelection (int offset, bool expandSelection = false) { - // if it is not a shift click or we don't allow multi select + // if it is not a shift click, or we don't allow multi select if (!expandSelection || !MultiSelect) { multiSelectedRegions.Clear (); @@ -518,7 +518,7 @@ public class TreeView : View, ITreeView where T : class if (idx == -1) { - // The current selection has disapeared! + // The current selection has disappeared! SelectedObject = roots.Keys.FirstOrDefault (); } else @@ -1090,7 +1090,7 @@ public class TreeView : View, ITreeView where T : class SelectedObject = clickedBranch.Model; SetNeedsDisplay (); - // trigger activation event + // trigger activation event OnObjectActivated (new ObjectActivatedEventArgs (this, clickedBranch.Model)); // mouse event is handled. @@ -1324,7 +1324,7 @@ public class TreeView : View, ITreeView where T : class /// /// Implementation of and . Performs operation and updates - /// selection if disapeared. + /// selection if disappeared. /// /// /// diff --git a/Terminal.Gui/Views/Wizard/Wizard.cs b/Terminal.Gui/Views/Wizard/Wizard.cs index 75377c8b4..70aeeeb5f 100644 --- a/Terminal.Gui/Views/Wizard/Wizard.cs +++ b/Terminal.Gui/Views/Wizard/Wizard.cs @@ -195,7 +195,7 @@ public class Wizard : Dialog } /// - /// Raised when the user has cancelled the by pressin the Esc key. To prevent a modal ( + /// Raised when the user has cancelled the by pressing the Esc key. To prevent a modal ( /// is true) Wizard from closing, cancel the event by setting /// to true before returning from the event handler. /// @@ -302,7 +302,7 @@ public class Wizard : Dialog } /// - /// Causes the wizad to move to the previous enabled step (or first step if is not set). + /// Causes the wizard to move to the previous enabled step (or first step if is not set). /// If there is no previous step, does nothing. /// public void GoBack () @@ -316,7 +316,7 @@ public class Wizard : Dialog } /// - /// Causes the wizad to move to the next enabled step (or last step if is not set). If + /// Causes the wizard to move to the next enabled step (or last step if is not set). If /// there is no previous step, does nothing. /// public void GoNext () @@ -388,7 +388,7 @@ public class Wizard : Dialog /// is derived from and Dialog causes Esc to call /// , closing the Dialog. Wizard overrides /// to instead fire the event when Wizard is being used as a - /// non-modal (see . + /// non-modal (see ). /// /// /// diff --git a/UnitTests/Views/TabTests.cs b/UnitTests/Views/TabTests.cs index 1e7ff7bab..a4de58bb0 100644 --- a/UnitTests/Views/TabTests.cs +++ b/UnitTests/Views/TabTests.cs @@ -6,7 +6,7 @@ public class TabTests public void Constructor_Defaults () { var tab = new Tab (); - Assert.Equal ("Unamed", tab.DisplayText); + Assert.Equal ("Unnamed", tab.DisplayText); Assert.Null (tab.View); Assert.Equal (LineStyle.Rounded, tab.BorderStyle); Assert.True (tab.CanFocus);