<command>
An element that sends events in response to keyboard input.
Sample applications that use the <command> tag:
Also, see ???.
Attributes inherited from <node>
classroot, cloneManager, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, subnodes
Methods
-
-
-
-
command.execute(d : any);
Sends the command's onselect event.
-
-
This is a utility method that returns a string that describes the key
combination that causes this command to be invoked.
-
-
command.setKeys(k : [String]);
![[Caution]](images/caution.png) |
This method is deprecated |
| Use setAttribute('key', ...) instead. |
This registers the given key array so that the command is executed when the
key array is pressed.
Methods inherited from <node>
animate, applyConstraint, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setData, setDatapath, setOption, setSelected, updateData