Skip to content

Commit d8a6fc2

Browse files
authored
Merge pull request #2236 from meiamsome/bugfix/keyPressed-documentation
Fix keyPressed documentation bug
2 parents f748178 + f5a5ee0 commit d8a6fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events/keyboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ p5.prototype.keyCode = 0;
167167
* return false; // prevent any default behaviour
168168
* }
169169
* </code>
170+
* </div>
170171
*
171172
* @alt
172173
* black rect center. turns white when key pressed and black when released
173174
* black rect center. turns white when left arrow pressed and black when right.
174175
*
175-
* </div>
176176
*/
177177
p5.prototype._onkeydown = function (e) {
178178
if (downKeys[e.which]) { // prevent multiple firings

0 commit comments

Comments
 (0)