Add keycode fes warning
Resolves #7876
Changes:
- Added a one-time Friendly Error System (FES) warning for
keyCodeusage insrc/core/main.js.- The warning informs users that
keyCodeis deprecated and suggests usingkeyIsDown()instead.
- The warning informs users that
- Added a manual test files:
test/manual-test-examples/events/keyCode-warning.htmlandtest/manual-test-examples/events/keyCode-warning-sketch.js- Verifies that the warning appears once and key behavior remains unchanged.
Screenshots of the change:
PR Checklist
- [x]
npm run lintpasses - [x] Inline reference is included / updated
- [x] Unit tests are included / updated
🎉 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!
Hi! I realized I should’ve claimed this issue first (as per the contributing guidelines), but since it wasn’t assigned to anyone and was still open, I went ahead and fixed it. Hope that’s okay — please review when you get a chance. I can make any necessary adjustments if needed. 😊
@ksen0, let me know if any changes are needed.