Skip to content

Commit 27294ad

Browse files
committed
Documentation update for bind()
1 parent 97dcf91 commit 27294ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/documentation/Keys.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<p><strong class="warning">NOTE </strong>keyName is a string that is returned by keyboardEvent.code. Check out the <a href="keyName.html">Key Namer</a> to get specific key names.</p>
44

55
<dl>
6+
<dt>ZEPHYR.Keys.bind(keyName, function, event)</dt>
7+
<dd>Any time event happens with the key specified, function() will be called.</dd>
8+
<dd><strong class="warning">NOTE </strong>If you call this function with just a keyName, it'll remove all bound functions from it.</dd>
69
<dt>ZEPHYR.Keys.down(keyName)</dt>
710
<dd>Returns true if the key is actively pressed down.</dd>
811
<dd><strong class="return">RETURN </strong>Boolean</dd>

0 commit comments

Comments
 (0)