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);
|
||||
|
||||
// Set event listeners
|
||||
var msie = navigator.userAgent.match('MSIE') && !navigator.userAgent.match('Opera');
|
||||
if (msie)
|
||||
var ie_opera = navigator.userAgent.match('MSIE') || navigator.userAgent.match('Opera');
|
||||
if (ie_opera)
|
||||
addListener(e, 'keydown', self.onKeyPress);
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue