From 9dd1e733f3a9526344e226e07bfdbdd2bfba5ea9 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 3 Nov 2014 15:06:12 -0500 Subject: Tabs: Suppress automatic activation when navigating with COMMAND Fixes #9621 Closes gh-1383 (cherry picked from commit 6a242ab4ebdcec265826b959fa27881dcf462c96) --- ui/tabs.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/tabs.js b/ui/tabs.js index e45a97c72..808f53fbb 100644 --- a/ui/tabs.js +++ b/ui/tabs.js @@ -201,8 +201,9 @@ return $.widget( "ui.tabs", { clearTimeout( this.activating ); selectedIndex = this._focusNextTab( selectedIndex, goingForward ); - // Navigating with control key will prevent automatic activation - if ( !event.ctrlKey ) { + // Navigating with control/command key will prevent automatic activation + if ( !event.ctrlKey && !event.metaKey ) { + // Update aria-selected immediately so that AT think the tab is already selected. // Otherwise AT may confuse the user by stating that they need to activate the tab, // but the tab will already be activated by the time the announcement finishes. -- cgit v1.2.3