Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check that the control exists before we try to focus it (#11635)
## Summary of the Pull Request When we are on a settings UI tab, `_GetActiveControl` returns a `nullptr`, make sure not to try and focus it in that case ## PR Checklist * [x] Closes #11633 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [x] I work here ## Validation Steps Performed No longer crashes (cherry picked from commit a7ce93a)
- Loading branch information