From 5945363d82a9f4d1bdc3d30f8fcf706736ae4ab5 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 18 Nov 2014 04:29:23 +0000 Subject: [PATCH] Update the inline docs for the `keyEvent` callback in the media grid. Props adamsilverstein See #29725 Built from https://develop.svn.wordpress.org/trunk@30378 git-svn-id: http://core.svn.wordpress.org/trunk@30375 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-grid.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/media-grid.js b/wp-includes/js/media-grid.js index 7a4e43e725..5bf3716d5c 100644 --- a/wp-includes/js/media-grid.js +++ b/wp-includes/js/media-grid.js @@ -576,7 +576,8 @@ return ( this.getCurrentIndex() - 1 ) > -1; }, /** - * Respond to the keyboard events: right arrow, left arrow, escape. + * Respond to the keyboard events: right arrow, left arrow, except when + * focus is in a textarea or input field. */ keyEvent: function( event ) { if ( ( 'INPUT' === event.target.nodeName || 'TEXTAREA' === event.target.nodeName ) && ! ( event.target.readOnly || event.target.disabled ) ) {