I relay don't know javascript I mostly search and cut an paste what I need. I did need to handle keys for one of my hacks. To allow only some keys in a dialog fields. I do not know if code like that would be useful for what you want to do. For there is no dialog active when you want to cancel your script. You may need to insert so other type of keyboard monitor. The Scrip I have keyboard handler is is my PastImageRoll script http://www.mouseprints.net/old/dpr/PasteImageRoll.jsx
↧