From a165561ddef1916f5e1a09599e5b81cb02559407 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 14 Jan 2016 23:02:05 +0000 Subject: [PATCH] Accessibility: Improve focus handling on the Taxonomies Quick Edit. Moves focus back to a proper place when saving or closing the form. Fixes #35460. git-svn-id: https://develop.svn.wordpress.org/trunk@36304 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/inline-edit-tax.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/js/inline-edit-tax.js b/src/wp-admin/js/inline-edit-tax.js index b1090de44b..17095afe9c 100644 --- a/src/wp-admin/js/inline-edit-tax.js +++ b/src/wp-admin/js/inline-edit-tax.js @@ -121,8 +121,8 @@ inlineEditTax = { $( '#parent' ).find( 'option[value=' + option_value + ']' ).text( row.find( '.row-title' ).text() ); row.hide().fadeIn( 400, function() { - // Move focus back to the taxonomy title. - row.find( '.row-title' ).focus(); + // Move focus back to the Quick Edit link. + row.find( '.editinline' ).focus(); wp.a11y.speak( inlineEditL10n.saved ); }); @@ -148,8 +148,8 @@ inlineEditTax = { $( 'table.widefat .spinner' ).removeClass( 'is-active' ); $('#'+id).siblings('tr.hidden').addBack().remove(); id = id.substr( id.lastIndexOf('-') + 1 ); - // Show the taxonomy listing and move focus back to the taxonomy title. - $( this.what + id ).show().find( '.row-title' ).focus(); + // Show the taxonomy row and move focus back to the Quick Edit link. + $( this.what + id ).show().find( '.editinline' ).focus(); } },