aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Hopkins <[email protected]>2012-01-31 09:23:58 -0500
committerPete Hopkins <[email protected]>2012-02-22 14:19:55 -0500
commit3a6f58598cdad40916426f31564afada6c7b4bdc (patch)
tree0d895cf255b4aeacf1cc4582ec185410bd4d41b9
parent70fecd111566eec3136457afb4143d0950c455b5 (diff)
downloadbootstrap-3a6f58598cdad40916426f31564afada6c7b4bdc.tar.xz
bootstrap-3a6f58598cdad40916426f31564afada6c7b4bdc.zip
Allows escape to bubble when menu isn't shown
-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 df1487bf8..99f84f796 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