Make WordPress Core

Ticket #29485: 29485.diff

File 29485.diff, 656 bytes (added by nacin, 11 years ago)
  • src/wp-admin/js/editor-expand.js

     
    195195                                return;
    196196                        }
    197197
     198                        // Bail on special keys.
     199                        if ( key <= 47 && ! ( key === VK.SPACEBAR || key === VK.ENTER || key === VK.DELETE || key === VK.BACKSPACE || key === VK.UP || key === VK.LEFT || key === VK.DOWN || key === VK.UP ) ) {
     200                                return;
     201                        }
     202
    198203                        cursorTop = offset.top + editor.iframeElement.getBoundingClientRect().top;
    199204                        cursorBottom = cursorTop + offset.height;
    200205                        cursorTop = cursorTop - buffer;