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...

So where to put it??

Gerald
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to