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:
parent
86034ec04d
commit
8fad4c957c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user