Make WordPress Core

Ticket #37092: 37092.patch

File 37092.patch, 733 bytes (added by iseulde, 9 years ago)
  • src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js

     
    6363                                enter();
    6464                        }
    6565
     66                        if ( VK.metaKeyPressed( event ) ) {
     67                                return;
     68                        }
     69
    6670                        // Wait for the browser to insert the character.
    67                         if ( event.keyCode === VK.SPACEBAR && ! event.ctrlKey && ! event.metaKey && ! event.altKey ) {
     71                        if ( event.keyCode === VK.SPACEBAR ) {
    6872                                setTimeout( space );
    6973                        } else if ( event.keyCode > 47 && ! ( event.keyCode >= 91 && event.keyCode <= 93 ) ) {
    7074                                setTimeout( inline );