2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-09-19 16:59:01 +00:00

Remove sniffing for Opera.

This commit is contained in:
Tomas Kirda 2013-05-06 15:35:03 -05:00
parent 7c2121a598
commit 54f24bd098

View File

@ -167,13 +167,7 @@
that.fixPosition();
// Opera does not like keydown:
if (window.opera) {
that.el.on('keypress.autocomplete', function (e) { that.onKeyPress(e); });
} else {
that.el.on('keydown.autocomplete', function (e) { that.onKeyPress(e); });
}
that.el.on('keydown.autocomplete', function (e) { that.onKeyPress(e); });
that.el.on('keyup.autocomplete', function (e) { that.onKeyUp(e); });
that.el.on('blur.autocomplete', function () { that.onBlur(); });
that.el.on('focus.autocomplete', function () { that.fixPosition(); });