CommandManager.installKeys Member

Internal. Installs accelerator keys for commands into an existing document.

Syntax

object.installKeys(document, commands);

Arguments

ArgumentSummary
document An XULDocument within which to install the accelerator keys. Each command's key is installed by installKey.
commands Optional. An Array or Object continaing CommandRecord objects. If not specified, all commands in the CommandManager are installed.

Returns

Remarks

See Also

Source Code

function cmgr_instkeys(document, commands)
{
var parentElem = document.getElementById("dynamic-keys");
if (!parentElem)
{
parentElem = document.createElement("keyset");
parentElem.setAttribute("id", "dynamic-keys");
document.documentElement.appendChild(parentElem);
}
if (!commands)
commands = this.commands;
for (var c in commands)
this.installKey (parentElem, commands[c]);
}