Code cleanup. Docs

This commit is contained in:
Tig
2024-08-29 14:09:13 -04:00
parent f0508b9831
commit a03a8cbc10
3 changed files with 5 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ public class Navigation : Scenario
statusBar.Add (
new Shortcut
{
Title = "Close",
Title = "Hide",
Text = "Hotkey",
Key = Key.F4,
Action = () =>
@@ -119,7 +119,7 @@ public class Navigation : Scenario
statusBar.Add (
new Shortcut
{
Title = "Close",
Title = "Toggle Hide",
Text = "App",
KeyBindingScope = KeyBindingScope.Application,
Key = Key.F4.WithCtrl,

View File

@@ -255,7 +255,7 @@ See also [Keyboard](keyboard.md) where HotKey is covered more deeply...
### How to Fix (Focus API)
* Use [Application.Navigation.GetFocused()](~/api/Terminal.Gui.Application.Navigation.GetFocused.yml) to get the most focused view in the application.
* ..
* Use [Application.Navigation.AdvanceFocus()](~/api/Terminal.Gui.Application.Navigation.AdvanceFocus.yml) to cause focus to change.
### Keyboard Navigation

View File

@@ -30,7 +30,7 @@ The entire library has been reviewed and simplified. As a result, the API is mor
* New! *`Dim.Auto`* - Automatically sizes the view to fitthe view's Text, SubViews, or ContentArea.
* Improved! *`Pos.AnchorEnd ()`* - New to v2 is `Pos.AnchorEnd ()` (with no parameters) which allows a view to be anchored to the right or bottom of the Superview.
* New! *`Pos.Align ()`* - Aligns a set of views horizontally or vertically (left, rigth, center, etc...).
* ...
* Keyboard [Navigation](navigation.md) has been revamped to be more reliability and ensure TUI apps built with Terminal.Gui are accessible.
## New and Improved Built-in Views
@@ -44,6 +44,7 @@ The entire library has been reviewed and simplified. As a result, the API is mor
* *[MenuBar](~/api/Terminal.Gui.MenuBar.yml)* - COMING SOON! New implementation based on `Bar`
* *[ContextMenu](~/api/Terminal.Gui.ContextMenu.yml)* - COMING SOON! New implementation based on `Bar`
* *[FileDialog](~/api/Terminal.Gui.FileDialog.yml)* - The new, modern file dialog includes icons (in TUI!) for files/folders, search, and a `TreeView`.
* [ColorPicker](~/api/Terminal.Gui/ColorPicker.yml)* - Fully supports TrueColor with the ability to choose a color using HSV, RGB, or HSL as well as W3C standard color names.
## Configuration Manager