I have an interesting problem where I have some code that executes
after the ESC key has been pressed. Part of this code sets up and
executes a XmlHttpRequest, resulting in the following exception being
generated:
Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsIXMLHttpRequest.send]
The escape key is being handled both by my javascript code (which sets
up the xhr), then the browser (which immediately aborts it).
Is there any way to prevent this key stroke from being processed by
the browser? I've tried all mechanisms that prevent the event from
propagating further (event.preventDefault() and event.stopPropagation
() don't work) but none of these seem to stop it from reaching the
browser.
Thanks,
Cer
Have you tried creating something like a 2th context? maybe inside a iframe,
or a hidden popup, or something. I guest the ESC command stop the active
page, but not childrens of that page.. or sisters of that page (a different
frame, in a frame based page)
--
--
ℱin del ℳensaje.
It's not a HUGE problem... We can live with it for development
purposes. I was just wondering if there was a way of switching off
that feature without having to rebuild it from source.