mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Media: Close attachment details modal with esc key.
The event that fired closing the attachment details modal also removed the keydown event listener, so subsequent modals could not be closed with the escape key. Props vondelphia, sourovroy, sabernhardt Fixes #53924. Built from https://develop.svn.wordpress.org/trunk@51945 git-svn-id: http://core.svn.wordpress.org/trunk@51534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a5926f8ece
commit
acabcf82ff
@ -8071,8 +8071,8 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{
|
||||
// Enable page scrolling.
|
||||
$( 'body' ).removeClass( 'modal-open' );
|
||||
|
||||
// Hide modal and remove restricted media modal tab focus once it's closed.
|
||||
this.$el.hide().off( 'keydown' );
|
||||
// Hide the modal element by adding display none.
|
||||
this.$el.hide();
|
||||
|
||||
/*
|
||||
* Make visible again to assistive technologies all body children that
|
||||
|
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51944';
|
||||
$wp_version = '5.9-alpha-51945';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user