event.keycode vs event.which
I fell foul of a Firefox keydown behavior in that pressing the enter key (indeed any key) without having focus on a specific field will NOT trigger a keydown event it will only trigger a keypress event. This could be very confusing as the keydown and keyup event use JavaScript key codes whereas keypress uses ASCII codes. Fortunately 13 (enter/return) is common to both. Is there any known reason why FF using keypress in this circumstance? What is the benefit? Once this was established IE8 threw up a silly in that it does not permit preventDefault demanding instead returnValue = false the