From 6f35abb62aaa73498d8df58126187eb21584f89c Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Tue, 27 Oct 2020 11:47:51 +0000 Subject: [PATCH] Add FocusablePanel doc --- doc/FocusablePanel.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/FocusablePanel.md diff --git a/doc/FocusablePanel.md b/doc/FocusablePanel.md new file mode 100644 index 0000000..b75fe0a --- /dev/null +++ b/doc/FocusablePanel.md @@ -0,0 +1,15 @@ +# FocusablePanel + +You can use this as a base class for your widgets instead of User Widget, +and get the following behaviour: + +## Initial focus + +Set the Initial Focus Widget Name to the name of a focusable widget in this panel. +When the panel os attached to the viewport, this widget will be given the focus. + +## Remembering focus + +This widget provides `SavePreviousFocus` and `RestorePreviousFocus` methods +which can save / restore focus as needed. They are not called by default but +are used in [Menus](Menus.md). \ No newline at end of file