TinyMCE: wptextpattern: Fix undo shortcut for inline patterns
Fixes #37092. git-svn-id: https://develop.svn.wordpress.org/trunk@39077 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bbfed835a3
commit
a3db15bb26
@ -71,12 +71,14 @@
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
|
||||
if ( event.keyCode === VK.ENTER && ! VK.modifierPressed( event ) ) {
|
||||
enter();
|
||||
if ( VK.metaKeyPressed( event ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( event.keyCode === VK.ENTER ) {
|
||||
enter();
|
||||
// Wait for the browser to insert the character.
|
||||
if ( event.keyCode === VK.SPACEBAR && ! event.ctrlKey && ! event.metaKey && ! event.altKey ) {
|
||||
} else if ( event.keyCode === VK.SPACEBAR ) {
|
||||
setTimeout( space );
|
||||
} else if ( event.keyCode > 47 && ! ( event.keyCode >= 91 && event.keyCode <= 93 ) ) {
|
||||
setTimeout( inline );
|
||||
|
Loading…
Reference in New Issue
Block a user