From 8c25a14aa03f7edbabac197c03e53a51db72f36d Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 18 Nov 2014 04:28:51 +0000 Subject: [PATCH] Update the inline docs for the `keyEvent` callback in the media grid. Props adamsilverstein See #29725 git-svn-id: https://develop.svn.wordpress.org/trunk@30378 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-grid.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js index 7a4e43e725..5bf3716d5c 100644 --- a/src/wp-includes/js/media-grid.js +++ b/src/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 ) ) {