diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js index 4d3d7f0d2f..bf864fe90c 100644 --- a/src/wp-includes/js/media-grid.js +++ b/src/wp-includes/js/media-grid.js @@ -487,11 +487,7 @@ */ keyEvent: function( event ) { var $target = $( event.target ); - // Pressing the escape key routes back to main url - if ( event.keyCode === 27 ) { - this.resetRoute(); - return event; - } + //Don't go left/right if we are in a textarea or input field if ( $target.is( 'input' ) || $target.is( 'textarea' ) ) { return event;