Accessibility: Handle one more case of focus loss when switching view in the Media Views.

See #43169.


git-svn-id: https://develop.svn.wordpress.org/trunk@45531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2019-06-13 16:21:49 +00:00
parent f16752240c
commit 5eb394329a

View File

@ -389,6 +389,8 @@ Post = Select.extend(/** @lends wp.media.view.MediaFrame.Post.prototype */{
click: function() {
this.controller.content.mode('browse');
// Move focus to the modal when jumping back from Edit Selection to Add Media view.
this.controller.modal.focusManager.focus();
}
});