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:
authorPete Hopkins <phopkins@gmail.com>2012-01-31 18:23:58 +0400
committerPete Hopkins <phopkins@twitter.com>2012-02-22 23:19:55 +0400
commit3a6f58598cdad40916426f31564afada6c7b4bdc (patch)
tree0d895cf255b4aeacf1cc4582ec185410bd4d41b9 /js/bootstrap-typeahead.js
parent70fecd111566eec3136457afb4143d0950c455b5 (diff)
Allows escape to bubble when menu isn't shown
Diffstat (limited to 'js/bootstrap-typeahead.js')
-rw-r--r--js/bootstrap-typeahead.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js
index df1487bf82..99f84f7961 100644
--- a/js/bootstrap-typeahead.js
+++ b/js/bootstrap-typeahead.js
@@ -178,6 +178,7 @@
break
case 27: // escape
+ if (!this.shown) return
this.hide()
break