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:
Ella van Dorpe 2016-11-01 20:33:21 +00:00
parent bbfed835a3
commit a3db15bb26
1 changed files with 5 additions and 3 deletions

View File

@ -71,12 +71,14 @@
event.stopImmediatePropagation(); event.stopImmediatePropagation();
} }
if ( event.keyCode === VK.ENTER && ! VK.modifierPressed( event ) ) { if ( VK.metaKeyPressed( event ) ) {
enter(); return;
} }
if ( event.keyCode === VK.ENTER ) {
enter();
// Wait for the browser to insert the character. // 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 ); setTimeout( space );
} else if ( event.keyCode > 47 && ! ( event.keyCode >= 91 && event.keyCode <= 93 ) ) { } else if ( event.keyCode > 47 && ! ( event.keyCode >= 91 && event.keyCode <= 93 ) ) {
setTimeout( inline ); setTimeout( inline );