curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Fix: prevent arrow key nav conflict inside textareas

Open Hellkryptonium opened this issue 7 months ago • 8 comments

What does this change?

This PR fixes a bug where pressing the left or right arrow keys inside a textarea would trigger navigation to a different prep section instead of moving the cursor within the textarea.

The fix ensures that arrow key navigation handlers ignore key events when the focused element is an input or textarea.

Common Content?

  • [] Block/s

Common Theme?

  • [x] Yes

Issue number: #1072

Org Content?

A function fixed

Module | Sprint | Page Type | Block Type

Checklist

  • [x] I have read the contributing guidelines
  • [x] I have checked my spelling and grammar with an automated tool
  • [x] I have previewed my changes to check the markdown renders as I intend
  • [x] I have run my code to check it works
  • [x] My changes follow our Style Guide

Who needs to know about this?

Hellkryptonium avatar May 11 '25 00:05 Hellkryptonium

Deploy request for cyf-curriculum pending review.

Visit the deploys page to approve it

Name Link
Latest commit 459593581468e27a8139a2a40e72888060689a50

netlify[bot] avatar May 11 '25 00:05 netlify[bot]

Deploy request for cyf-piscine pending review.

Visit the deploys page to approve it

Name Link
Latest commit 459593581468e27a8139a2a40e72888060689a50

netlify[bot] avatar May 11 '25 00:05 netlify[bot]

Deploy request for cyf-launch pending review.

Visit the deploys page to approve it

Name Link
Latest commit 459593581468e27a8139a2a40e72888060689a50

netlify[bot] avatar May 11 '25 00:05 netlify[bot]

Deploy request for cyf-common pending review.

Visit the deploys page to approve it

Name Link
Latest commit 459593581468e27a8139a2a40e72888060689a50

netlify[bot] avatar May 11 '25 00:05 netlify[bot]

Deploy request for cyf-itd pending review.

Visit the deploys page to approve it

Name Link
Latest commit 459593581468e27a8139a2a40e72888060689a50

netlify[bot] avatar May 11 '25 00:05 netlify[bot]

Deploy request for cyf-sdc pending review.

Visit the deploys page to approve it

Name Link
Latest commit 459593581468e27a8139a2a40e72888060689a50

netlify[bot] avatar May 11 '25 00:05 netlify[bot]

Deploy request for cyf-tracks pending review.

Visit the deploys page to approve it

Name Link
Latest commit 459593581468e27a8139a2a40e72888060689a50

netlify[bot] avatar May 11 '25 00:05 netlify[bot]

Deploy Preview for cyf-programming ready!

Name Link
Latest commit 459593581468e27a8139a2a40e72888060689a50
Latest deploy log https://app.netlify.com/sites/cyf-programming/deploys/681ff093679a6f00085513b5
Deploy Preview https://deploy-preview-1445--cyf-programming.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance: 86 (🔴 down 13 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar May 12 '25 13:05 netlify[bot]