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:
parent
f16752240c
commit
5eb394329a
@ -389,6 +389,8 @@ Post = Select.extend(/** @lends wp.media.view.MediaFrame.Post.prototype */{
|
|||||||
|
|
||||||
click: function() {
|
click: function() {
|
||||||
this.controller.content.mode('browse');
|
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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user