Ticket #37092: 37092.2.patch
File 37092.2.patch, 907 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
71 71 event.stopImmediatePropagation(); 72 72 } 73 73 74 if ( event.keyCode === VK.ENTER && ! VK.modifierPressed( event ) ) {75 enter();74 if ( VK.metaKeyPressed( event ) ) { 75 return; 76 76 } 77 77 78 if ( event.keyCode === VK.ENTER ) { 79 enter(); 78 80 // Wait for the browser to insert the character. 79 if ( event.keyCode === VK.SPACEBAR && ! event.ctrlKey && ! event.metaKey && ! event.altKey) {81 } else if ( event.keyCode === VK.SPACEBAR ) { 80 82 setTimeout( space ); 81 83 } else if ( event.keyCode > 47 && ! ( event.keyCode >= 91 && event.keyCode <= 93 ) ) { 82 84 setTimeout( inline );