Set just onkeydown for both IE and Opera
parent
e98b0283da
commit
06eda4ba33
|
@ -87,8 +87,8 @@ var SimpleAutocomplete = function(input, dataLoader, multipleDelimiter, onChange
|
||||||
SimpleAutocomplete.SimpleAutocompletes.push(self);
|
SimpleAutocomplete.SimpleAutocompletes.push(self);
|
||||||
|
|
||||||
// Set event listeners
|
// Set event listeners
|
||||||
var msie = navigator.userAgent.match('MSIE') && !navigator.userAgent.match('Opera');
|
var ie_opera = navigator.userAgent.match('MSIE') || navigator.userAgent.match('Opera');
|
||||||
if (msie)
|
if (ie_opera)
|
||||||
addListener(e, 'keydown', self.onKeyPress);
|
addListener(e, 'keydown', self.onKeyPress);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue