Set just onkeydown for both IE and Opera

master
Vitaliy Filippov 2012-07-24 12:09:30 +00:00
parent e98b0283da
commit 06eda4ba33
1 changed files with 2 additions and 2 deletions

View File

@ -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
{