From 0297a3c4f6ace90a7e7670f9e148207be3dadc10 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 18 Nov 2014 04:27:12 +0000 Subject: [PATCH] Avoid re-registering the `keydown` event controller in the media grid so arrow controls don't skip media items. Fixes #30348 Props UmeshSingla git-svn-id: https://develop.svn.wordpress.org/trunk@30377 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-grid.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js index 4785b4776f..7a4e43e725 100644 --- a/src/wp-includes/js/media-grid.js +++ b/src/wp-includes/js/media-grid.js @@ -387,8 +387,7 @@ events: { 'click .left': 'previousMediaItem', - 'click .right': 'nextMediaItem', - 'keydown': 'keyEvent' + 'click .right': 'nextMediaItem' }, initialize: function() {