aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap.js
diff options
context:
space:
mode:
authorfat <[email protected]>2012-12-22 13:57:57 -0800
committerfat <[email protected]>2012-12-22 13:57:57 -0800
commit2c0ed072b07f79eb617f15062f52fa349e95305d (patch)
treee5833b1f7ee9f79b132a1957f71708f7341e3a11 /docs/assets/js/bootstrap.js
parent4d195222d46c21fe31dfa1246bdb11474476b36d (diff)
downloadbootstrap-2c0ed072b07f79eb617f15062f52fa349e95305d.tar.xz
bootstrap-2c0ed072b07f79eb617f15062f52fa349e95305d.zip
shifting focus to parent and adding aria menuitem for dropdown
Diffstat (limited to 'docs/assets/js/bootstrap.js')
-rw-r--r--docs/assets/js/bootstrap.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js
index a59e89080..0b717eabd 100644
--- a/docs/assets/js/bootstrap.js
+++ b/docs/assets/js/bootstrap.js
@@ -713,7 +713,10 @@
isActive = $parent.hasClass('open')
- if (!isActive || (isActive && e.keyCode == 27)) return $this.click()
+ if (!isActive || (isActive && e.keyCode == 27)) {
+ if (e.which == 27) $parent.find(toggle).focus()
+ return $this.click()
+ }
$items = $('[role=menu] li:not(.divider):visible a', $parent)