aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-11-03 15:06:12 -0500
committerScott González <scott.gonzalez@gmail.com>2015-02-09 11:50:05 -0500
commit9dd1e733f3a9526344e226e07bfdbdd2bfba5ea9 (patch)
treed70eec7cfa62425941757b259a4e32846abf8562 /ui
parentdc2c948dd621c4ce9397789f880370904e75f233 (diff)
downloadjquery-ui-9dd1e733f3a9526344e226e07bfdbdd2bfba5ea9.tar.gz
jquery-ui-9dd1e733f3a9526344e226e07bfdbdd2bfba5ea9.zip
Tabs: Suppress automatic activation when navigating with COMMAND
Fixes #9621 Closes gh-1383 (cherry picked from commit 6a242ab4ebdcec265826b959fa27881dcf462c96)
Diffstat (limited to 'ui')
-rw-r--r--ui/tabs.js5
1 files changed, 3 insertions, 2 deletions
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.