mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Improving Application.Navigation
This commit is contained in:
@@ -98,7 +98,7 @@ Causes the focus to advance (forward or backwards) to the next View in the appli
|
||||
The implementation is simple:
|
||||
|
||||
```cs
|
||||
return Application.GetFocused()?.AdvanceFocus (direction, behavior) ?? false;
|
||||
return Application.Current?.AdvanceFocus (direction, behavior);
|
||||
```
|
||||
|
||||
This method is called from the `Command` handlers bound to the application-scoped keybindings created during `Application.Init`. It is `public` as a convenience.
|
||||
|
||||
Reference in New Issue
Block a user