<canvas height="130" debug="true">
            <command onselect="Debug.debug('the enter key was pressed');" key="['Enter']"/>
            
            </canvas>
               Sample applications that use the <command> tag:
            
| Name (CSS property) | Type (tag) | Type (js) | Default | Category | 
|---|---|---|---|---|
| active | boolean | Boolean | true | read/write | 
| true if the command is currently active. The default is true. | ||||
| keys | expression | [String] | null | read/write | 
| array of keys (strings) that, when pressed together, cause the onselect event of the command to be sent. For example: setAttribute('key', ['a', 'shift']) | ||||
classroot, cloneManager, data, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, styleclass, subnodes, transition
| Name (CSS property) | Type (tag) | Type (js) | Default | Category | 
|---|---|---|---|---|
| DisplayKeys | expression | Dictionary | {control:'Ctrl', shift:'Shift', alt:'Alt'} | readonly | 
| Mapping from key names to display strings used by keysToString | ||||
Methods
| execute() | 
|---|
| keysToString() | 
|---|
| Returns | Type | Description | 
|---|---|---|
| String | A string containing the key combination that causes this command to be invoked. | 
| setKeys() | 
|---|
| ![[Caution]](images/caution.png) | This method is deprecated | 
|---|---|
| Use setAttribute('key', ...) instead. | 
animate, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setOption, setSelected, updateData
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.