diff options
author | Scott González <scott.gonzalez@gmail.com> | 2014-11-03 15:06:12 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-11-04 12:07:46 -0500 |
commit | 6a242ab4ebdcec265826b959fa27881dcf462c96 (patch) | |
tree | 3caaf7c4042681edb68c0f15242d99659212dfb6 /ui | |
parent | 979373983babce7122d98c4f3919426735555d61 (diff) | |
download | jquery-ui-6a242ab4ebdcec265826b959fa27881dcf462c96.tar.gz jquery-ui-6a242ab4ebdcec265826b959fa27881dcf462c96.zip |
Tabs: Suppress automatic activation when navigating with COMMAND
Fixes #9621
Closes gh-1383
Diffstat (limited to 'ui')
-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. |