From 8fad4c957c86e05ae3fe08ea76b4c52b980e08e4 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 7 Aug 2014 22:36:30 +0000 Subject: [PATCH] Media Grid: remove Router code that doesn't actually ever run. See #29121. git-svn-id: https://develop.svn.wordpress.org/trunk@29444 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-grid.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;