Improving Application.Navigation

This commit is contained in:
Tig
2024-08-29 13:53:16 -04:00
parent 3902e62b4a
commit f0508b9831
3 changed files with 14 additions and 2 deletions

View File

@@ -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.