M
mgw
Hi,
I'm trying to cancel the Shift+F3 key combination in Netscape 7.2 from
performing the F3 key's default action of opening the Find dialog. I'm
unable thus far to prevent the Find dialog from appearing after
following steps listed in numerous posts in this group.
I detect the onkeydown event of the body as follows:
<body onkeydown="return bodyOnKeyPress(event);">
My bodyOnKeyPress event is as follows:
function bodyOnKeyPress(evt)
{
if(evt.keyCode == 114 && evt.shiftKey)
{
if(navigator.appName == "Netscape")
{
evt.preventDefault();
}
else
{
evt.keyCode = 0;
evt.returnValue = false;
}
evt.cancelBubble = true;
return false;
}
}
Does anyone see perhaps something that I'm doing wrong? Any help would
be greatly appreciated.
Thanks,
Mike
I'm trying to cancel the Shift+F3 key combination in Netscape 7.2 from
performing the F3 key's default action of opening the Find dialog. I'm
unable thus far to prevent the Find dialog from appearing after
following steps listed in numerous posts in this group.
I detect the onkeydown event of the body as follows:
<body onkeydown="return bodyOnKeyPress(event);">
My bodyOnKeyPress event is as follows:
function bodyOnKeyPress(evt)
{
if(evt.keyCode == 114 && evt.shiftKey)
{
if(navigator.appName == "Netscape")
{
evt.preventDefault();
}
else
{
evt.keyCode = 0;
evt.returnValue = false;
}
evt.cancelBubble = true;
return false;
}
}
Does anyone see perhaps something that I'm doing wrong? Any help would
be greatly appreciated.
Thanks,
Mike