You cannot stop some events from happening. In FF you can see that F5 is
pressed but there is not anything you can do to stop it from refreshing
with F12 and firebug installed.
"William A. Hansen" <whansen@xxxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
05/09/2011 06:49 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Re: Warning - Firefox v4 not compatible with HMC 7.7.1
Capturing function keys can be a chore, but it is fairly straightforward.
As in all browsers, IE accepts the onKeyPress event. Define it as
onkeypress='myFunction(event)'. Within the event handler, you can
interrogate the event with event.keyCode to get the ASCII code of the key
pressed. The trick is to use event.cancelBubble = true; to stop the event
from percolating back to the browser.
The remaining nasty bit is the F1 key. Unlike other browsers, IE supports
an onHelp event (as well as onContextMenu to capture right-clicks). I
need to capture this because my entry-level course teaches people how to
use F1 in all the glorious ways that IBM i supports. I don't want the IE
help window to pop up.
William A. Hansen
Manta Technologies Inc.
Toll-free: (800) 406-2682 x 101
Direct: (303) 862-4562
This thread ...
Re: Warning - Firefox v4 not compatible with HMC 7.7.1, (continued)
This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact