Skip to content

docs: update key reference for p5.js 2.x - #9398

Open
lipe-manza wants to merge 1 commit into
processing:mainfrom
lipe-manza:docs/fix-key-reference
Open

lipe-manza wants to merge 1 commit into
processing:mainfrom
lipe-manza:docs/fix-key-reference

Conversation

@lipe-manza

Copy link
Copy Markdown

Resolves #9296

Changes:

  • Updated the key documentation for p5.js 2.x, including support for special keys such as Enter and ArrowDown.
  • Clarified how key behaves when multiple keys are pressed and when all keys are released.
  • Explained when to use keyIsDown() to check multiple keys simultaneously.
  • Updated the examples to reflect the current behavior, including diagonal movement using keyIsDown().
  • Added a reference to code for further information.

Screenshots of the change:
Not applicable — documentation-only change.

PR Checklist

Testing:

  • npm run lint — passed (0 errors; existing warnings).
  • npx vitest run test/unit/events/keyboard.js --project unit-tests — 20 passed, 4 TODO.

@welcome

welcome Bot commented Nov 12, 2026

Copy link
Copy Markdown

🎉 Thanks for opening this pull request! For guidance on contributing, check out our contributor guidelines and other resources for contributors!
🤔 Please ensure that your PR links to an issue, which has been approved for work by a maintainer; otherwise, there might already be someone working on it, or still ongoing discussion about implementation. You are welcome to join the discussion in an Issue if you're not sure!
🌸 Once your PR is merged, be sure to add yourself to the list of contributors on the readme page !

Thank You!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[p5.js 2.0+ Bug Report]: key docs needs updating

1 participant