From d83dbfca179de33f1f6e8a280ae64d53259695be Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 19 Jul 2014 03:31:49 +0000 Subject: [PATCH] Customizer: Remove "Add a Widget" button from tab order when reordering widgets. fixes #28890. git-svn-id: https://develop.svn.wordpress.org/trunk@29243 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-widgets.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-admin/js/customize-widgets.js b/src/wp-admin/js/customize-widgets.js index 857d6f5239..0a3909a534 100644 --- a/src/wp-admin/js/customize-widgets.js +++ b/src/wp-admin/js/customize-widgets.js @@ -1588,6 +1588,9 @@ } ); this.$sectionContent.find( '.first-widget .move-widget' ).focus(); + this.$sectionContent.find( '.add-new-widget' ).prop( 'tabIndex', -1 ); + } else { + this.$sectionContent.find( '.add-new-widget' ).prop( 'tabIndex', 0 ); } },