Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding restoreFocusOnClose parameter in Dialog widget #1790
This commit adds the "restoreFocusOnClose" parameter on the Dialog widget, which is true by default (to keep the same behavior as before which restores the focus to the element that was focused before the dialog was opened when the dialog is closed) but which can now also be set to false (either directly in the configuration, or through a binding) to disable the automatic restoration of the focus. This is especially useful if the application manages the focus itself when the dialog is closed and does not want the framework to interfere.