Browse Source

Code cleanup

Tig 1 year ago
parent
commit
2f71fc0bc3

+ 1 - 1
Terminal.Gui/View/Navigation/TabBehavior.cs

@@ -16,7 +16,7 @@ public enum TabBehavior
     TabStop = 1,
 
     /// <summary>
-    ///     The View will be a stop-point for keyboard-based navigation across groups (e.g. if the user preesses <see cref="Application.NextTabGroupKey"/> (`Ctrl-PageDown`).
+    ///     The View will be a stop-point for keyboard-based navigation across groups (e.g. if the user presses <see cref="Application.NextTabGroupKey"/> (`Ctrl-PageDown`).
     /// </summary>
     TabGroup = 2,
 }

+ 1 - 1
Terminal.Gui/View/View.Navigation.cs

@@ -30,7 +30,7 @@ public partial class View // Focus and cross-view navigation management (TabStop
     ///     </para>
     /// </remarks>
     /// <param name="direction"></param>
-    /// <param name="groupOnly">If <see langword="true"/> will advance into ...</param>
+    /// <param name="behavior"></param>
     /// <returns>
     ///     <see langword="true"/> if focus was changed to another subview (or stayed on this one), <see langword="false"/>
     ///     otherwise.

+ 0 - 2
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)