mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-04 20:57:36 +02:00
Fix key events with Chrome + jQuery 1.8.0
This commit is contained in:
2
js/bootstrap-typeahead.js
vendored
2
js/bootstrap-typeahead.js
vendored
@@ -174,7 +174,7 @@
|
|||||||
.on('keypress', $.proxy(this.keypress, this))
|
.on('keypress', $.proxy(this.keypress, this))
|
||||||
.on('keyup', $.proxy(this.keyup, 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))
|
this.$element.on('keydown', $.proxy(this.keydown, this))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user