On Thu, 23 Mar 2006 11:17:28 +0900, Gerald Vogt wrote: > O.K. That was too quick. The code works now. But it is still too early > point in the initialization of Firefox. I have verified with venkman > that the code is correctly executed but at that time, although the DOM > element for the key exists, it does not have any attributes set. These > seems to be set after the window load event. So once the window appears > on screen my assignments are gone. Only the definition of the key > defined in the <key> works, e.g.
> <key id="key_mojiLookupWord" oncommand="contextMenuWordHandler();" > modifiers="alt" key="w" /> > Even if I modify the modifiers and key in the load event listener, only > alt-w works. If I omit the modifiers and key as I had it originally, > then Firefox fires the command whenever I press the alt key or enter and > at many other occasions... According to XULPlanet, "key" and "modifiers" are attributes and not properties. Try using setAttribute() instead. Phil -- Philip Chee <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> http://flashblock.mozdev.org/ http://xsidebar.mozdev.org Guard us from the she-wolf and the wolf, and guard us from the thief, oh Night, and so be good for us to pass. [ ]Show me a sane man. I'll cure him for you. * TagZilla 0.059 _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
