From 66ad3d62c668710b4a2c98f0f3b91a4d5a5bb55c Mon Sep 17 00:00:00 2001 From: Ross Johnson Date: Tue, 28 Aug 2012 00:55:56 -0500 Subject: [PATCH] Fix key events with Chrome + jQuery 1.8.0 --- js/bootstrap-typeahead.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js index 65b1ddab14..421cabb016 100644 --- a/js/bootstrap-typeahead.js +++ b/js/bootstrap-typeahead.js @@ -174,7 +174,7 @@ .on('keypress', $.proxy(this.keypress, this)) .on('keyup', $.proxy(this.keyup, this)) - if ($.browser.webkit || $.browser.msie) { + if ($.browser.chrome || $.browser.webkit || $.browser.msie) { this.$element.on('keydown', $.proxy(this.keydown, this)) }