Skip to content

Fix: prevent arrow key nav conflict inside textareas #1445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Hellkryptonium
Copy link
Contributor

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?

  • Yes

Issue number: #1072

Org Content?

A function fixed

Module | Sprint | Page Type | Block Type

Checklist

Who needs to know about this?

Copy link

netlify bot commented May 11, 2025

👷 Deploy request for cyf-curriculum pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4595935

@github-project-automation github-project-automation bot moved this to 📋 Backlog in Curriculum Planning May 11, 2025
Copy link

netlify bot commented May 11, 2025

👷 Deploy request for cyf-piscine pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4595935

Copy link

netlify bot commented May 11, 2025

👷 Deploy request for cyf-launch pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4595935

Copy link

netlify bot commented May 11, 2025

👷 Deploy request for cyf-common pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4595935

Copy link

netlify bot commented May 11, 2025

👷 Deploy request for cyf-itd pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4595935

Copy link

netlify bot commented May 11, 2025

👷 Deploy request for cyf-sdc pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4595935

Copy link

netlify bot commented May 11, 2025

👷 Deploy request for cyf-tracks pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4595935

Copy link

netlify bot commented May 12, 2025

Deploy Preview for cyf-programming ready!

Name Link
🔨 Latest commit 4595935
🔍 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
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.

Copy link
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up! I tried this in the deploy preview (https://deploy-preview-1445--cyf-programming.netlify.app/data-groups/sprints/3/prep/#implementing-a-character-limit) and the left/right arrows still seem to have the buggy behaviour. Please could you take a look? I'd recommend running the site locally, and debugging interactively :)

@github-project-automation github-project-automation bot moved this from 📋 Backlog to 🔖 Ready in Curriculum Planning May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Ready
Development

Successfully merging this pull request may close these issues.

2 participants