mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
Editor: fix exiting DFW with the keyboard shortcut on Mac (Opt+Ctrl+W).
Fixes #36222. Built from https://develop.svn.wordpress.org/trunk@37003 git-svn-id: http://core.svn.wordpress.org/trunk@36970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
effedfdff4
commit
d529800cba
@ -887,10 +887,15 @@
|
||||
}
|
||||
|
||||
function fadeOut( event ) {
|
||||
var key = event && event.keyCode;
|
||||
var isMac,
|
||||
key = event && event.keyCode;
|
||||
|
||||
// fadeIn and return on Escape and keyboard shortcut Alt+Shift+W.
|
||||
if ( key === 27 || ( key === 87 && event.altKey && event.shiftKey ) ) {
|
||||
if ( window.navigator.platform ) {
|
||||
isMac = ( window.navigator.platform.indexOf( 'Mac' ) > -1 );
|
||||
}
|
||||
|
||||
// fadeIn and return on Escape and keyboard shortcut Alt+Shift+W and Ctrl+Opt+W.
|
||||
if ( key === 27 || ( key === 87 && event.altKey && ( ( ! isMac && event.shiftKey ) || ( isMac && event.ctrlKey ) ) ) ) {
|
||||
fadeIn( event );
|
||||
return;
|
||||
}
|
||||
|
2
wp-admin/js/editor-expand.min.js
vendored
2
wp-admin/js/editor-expand.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-beta3-37002';
|
||||
$wp_version = '4.5-beta3-37003';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user