diff options
Diffstat (limited to 'ui/tabs.js')
-rw-r--r-- | ui/tabs.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/tabs.js b/ui/tabs.js index fea7138d5..c0b24e743 100644 --- a/ui/tabs.js +++ b/ui/tabs.js @@ -197,8 +197,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. |