diff --git a/javascript.html b/javascript.html index 6b7fc3fc34..1d4604afc4 100644 --- a/javascript.html +++ b/javascript.html @@ -543,10 +543,10 @@ $('#myDropdown').on('show.bs.dropdown', function () { @@ -665,8 +665,8 @@ $('#myScrollspy').on('activate.bs.scrollspy', function () { diff --git a/js/dropdown.js b/js/dropdown.js index d675cab320..69bbd802ca 100644 --- a/js/dropdown.js +++ b/js/dropdown.js @@ -60,7 +60,7 @@ } Dropdown.prototype.keydown = function (e) { - if (!/(9|38|40|27)/.test(e.keyCode)) return + if (!/(38|40|27)/.test(e.keyCode)) return var $this = $(this)