Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-04-08 08:26:46 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-04-08 08:26:46 +0400
commit08fee005a8a879498255611c18dede3112896d3d (patch)
tree6c6f54dce9884ee8773405ffcd1a250434196aff /js/bootstrap-typeahead.js
parenta20cd66ba479053f060b1a7ed61cb1f0cd90450f (diff)
https://github.com/twitter/bootstrap/issues/2954
Diffstat (limited to 'js/bootstrap-typeahead.js')
-rw-r--r--js/bootstrap-typeahead.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js
index f366bea637..3876e63071 100644
--- a/js/bootstrap-typeahead.js
+++ b/js/bootstrap-typeahead.js
@@ -204,11 +204,13 @@
break
case 38: // up arrow
+ if (e.type != 'keydown') break
e.preventDefault()
this.prev()
break
case 40: // down arrow
+ if (e.type != 'keydown') break
e.preventDefault()
this.next()
break