This javascript code always returns zero for " Shift + / " key combination on Firefox 3.6.3 on OSX 10.5.8 But it returns the expected value 191 on Chrome on OSX/mac
GetKeyCode = function(e) {
var code = 0;
if (!e) {
e = window.event
}
if (e.keyCode) {
code = e.keyCode;
} else if (e.which) {
code = e.which;
}
return code;
};
GetKeyCode is getting keydown event from jQuery.
jQuery(document).keydown(function(e) { ...... });
Is there any bug, or am I missing something very simple here? Please help
Thanks in advance. -Parimal Das