-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some issues with focus scopes (#13409)
* Remove focus hack from Popup. * Added failing focus scope tests. * Refactor focus scopes in FocusManager. - Store focused element within a scope using an attached property (like WPF) - Store current focus root so that focus can be restored to that root when a focused control or active focus scope is removed Fixes #13325 * Suppress API compat error. This was being produced for a compiler-generated enumerable class that was erroneously being included in the reference assembly for `FocusManager`. * Remove focus hack from ContextMenu. And add failing test now that the hack is removed. * Try to return a rooted host visual. Fixes failing test from previous comment where focus wasn't restored when closing a context menu.
- Loading branch information
Showing
9 changed files
with
277 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.