From 2f71fc0bc3168ca72a4009c0442bbcc4a8a286d6 Mon Sep 17 00:00:00 2001 From: Tig Date: Fri, 2 Aug 2024 10:59:53 -0600 Subject: [PATCH] Code cleanup --- Terminal.Gui/View/Navigation/TabBehavior.cs | 2 +- Terminal.Gui/View/View.Navigation.cs | 2 +- UnitTests/View/NavigationTests.cs | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Terminal.Gui/View/Navigation/TabBehavior.cs b/Terminal.Gui/View/Navigation/TabBehavior.cs index 1fd87b7d6..e1957718d 100644 --- a/Terminal.Gui/View/Navigation/TabBehavior.cs +++ b/Terminal.Gui/View/Navigation/TabBehavior.cs @@ -16,7 +16,7 @@ public enum TabBehavior TabStop = 1, /// - /// The View will be a stop-point for keyboard-based navigation across groups (e.g. if the user preesses (`Ctrl-PageDown`). + /// The View will be a stop-point for keyboard-based navigation across groups (e.g. if the user presses (`Ctrl-PageDown`). /// TabGroup = 2, } diff --git a/Terminal.Gui/View/View.Navigation.cs b/Terminal.Gui/View/View.Navigation.cs index e4f43e90f..4471705d5 100644 --- a/Terminal.Gui/View/View.Navigation.cs +++ b/Terminal.Gui/View/View.Navigation.cs @@ -30,7 +30,7 @@ public partial class View // Focus and cross-view navigation management (TabStop /// /// /// - /// If will advance into ... + /// /// /// if focus was changed to another subview (or stayed on this one), /// otherwise. diff --git a/UnitTests/View/NavigationTests.cs b/UnitTests/View/NavigationTests.cs index ccee7dd5a..894a7bf00 100644 --- a/UnitTests/View/NavigationTests.cs +++ b/UnitTests/View/NavigationTests.cs @@ -1895,8 +1895,6 @@ public class NavigationTests (ITestOutputHelper _output) : TestsAllViews // Start with the focus on our test view view.SetFocus (); - int tries = 0; - Key [] navKeys = new Key [] { Key.Tab, Key.Tab.WithShift, Key.CursorUp, Key.CursorDown, Key.CursorLeft, Key.CursorRight }; if (view.TabStop == TabBehavior.TabGroup)