Here is a simple example:
Example 11. LzKeys
<canvas height="140" debug="true"> <handler name="onkeydown" reference="LzKeys" args="k"> Debug.write("key " + k + " down"); </handler> <handler name="onkeyup" reference="LzKeys" args="k"> Debug.write("key " + k + " up"); </handler> <method name="pressA"> Debug.write("A pressed"); </method> <handler name="oninit"> del = new LzDelegate(this, "pressA"); LzKeys.callOnKeyCombo(del, ["A"]); </handler> </canvas>
Static Properties (5)
Static Methods (8)
Static Events (3)
Copyright © 2002-2007 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.