Skip to content

Commit

Permalink
docs: improve inline docs of key event handlers
Browse files Browse the repository at this point in the history
add @param `[event]`
  • Loading branch information
fal-works committed Jan 22, 2021
1 parent b7123bc commit df8a3ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/events/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ p5.prototype.keyCode = 0;
* behavior for this event, add "return false" to the end of the method.
*
* @method keyPressed
* @param {Object} [event] optional KeyboardEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
Expand Down Expand Up @@ -195,6 +196,7 @@ p5.prototype._onkeydown = function(e) {
* behavior for this event, add "return false" to the end of the method.
*
* @method keyReleased
* @param {Object} [event] optional KeyboardEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
Expand Down Expand Up @@ -255,6 +257,7 @@ p5.prototype._onkeyup = function(e) {
* to the end of the method.
*
* @method keyTyped
* @param {Object} [event] optional KeyboardEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
Expand Down

0 comments on commit df8a3ca

Please sign in to comment.