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

See #43169.

Built from https://develop.svn.wordpress.org/trunk@45531


git-svn-id: http://core.svn.wordpress.org/trunk@45342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2019-06-13 16:22:52 +00:00
parent 727838a11b
commit d69a3e6f90
3 changed files with 6 additions and 4 deletions

View File

@ -3754,6 +3754,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();
} }
}); });

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45529'; $wp_version = '5.3-alpha-45531';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.