AdvMessageDialog keyboard events

I have just tried out the AdvMessageDialog.

It looks great and you have done a good job.
 
I tried to use the input box of type integer. I get errors in the Firefox browser when I type a key.
 
"event is undefined"
 
Is it because the parameter passed to the keydown and keypress call is (e) ?
Should the code be window.event rather than just event - It seems to work then.
 
    + 'function ' + HTMLName + 'KeyPress(e){'#13
    + '  if (window.event) key = window.event.keyCode; else key = e.which;'#13
    + '  if (key == 27)'#13 //escape key
    + '    ' + HTMLName + 'Hide();'#13
    + '}'#13
    + 'function ' + HTMLName + 'Integer(e){'#13
    + '  if (window.event) key = window.event.keyCode; else key = e.which;'#13
 
I think you may also have to return false; when an invalid key is pressed otherwise you get characters in your input????
 
 
 
 

This issue has been fixed.
The update will be available with the next release of the TMS IW Component Pack.