]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Allows escape to bubble when menu isn't shown 2177/head
authorPete Hopkins <phopkins@gmail.com>
Tue, 31 Jan 2012 14:23:58 +0000 (09:23 -0500)
committerPete Hopkins <phopkins@twitter.com>
Wed, 22 Feb 2012 19:19:55 +0000 (14:19 -0500)
js/bootstrap-typeahead.js

index df1487bf825f44273d1812989a4c1e99d31f0428..99f84f79610c2f2b3451daa7dd1e90127881986f 100644 (file)
           break
 
         case 27: // escape
+          if (!this.shown) return
           this.hide()
           break