diff options
| author | fat <[email protected]> | 2012-12-07 18:37:32 -0500 |
|---|---|---|
| committer | fat <[email protected]> | 2012-12-07 18:37:32 -0500 |
| commit | 437654030aa283b92a260245b54fa17a417c20d8 (patch) | |
| tree | 9be8202461514bd0ee9ce15f958dd63436afa3a5 /docs/assets/js/bootstrap.js | |
| parent | 10e72e158d5d85b1373375a5230fe2b9865c8bba (diff) | |
| download | bootstrap-437654030aa283b92a260245b54fa17a417c20d8.tar.xz bootstrap-437654030aa283b92a260245b54fa17a417c20d8.zip | |
focus on escape in typeahead
Diffstat (limited to 'docs/assets/js/bootstrap.js')
| -rw-r--r-- | docs/assets/js/bootstrap.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index 422699ce1..ce634fee3 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -664,9 +664,10 @@ if (!isActive) { $parent.toggleClass('open') - $this.focus() } + $this.focus() + return false } @@ -1935,7 +1936,7 @@ } , keydown: function (e) { - this.suppressKeyPressRepeat = !~$.inArray(e.keyCode, [40,38,9,13,27]) + this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27]) this.move(e) } |
