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
This commit is contained in:
Scott Taylor 2014-08-07 22:36:30 +00:00
parent 86034ec04d
commit 8fad4c957c

View File

@ -487,11 +487,7 @@
*/ */
keyEvent: function( event ) { keyEvent: function( event ) {
var $target = $( event.target ); 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 //Don't go left/right if we are in a textarea or input field
if ( $target.is( 'input' ) || $target.is( 'textarea' ) ) { if ( $target.is( 'input' ) || $target.is( 'textarea' ) ) {
return event; return event;