Skip to content

🎨 Palette: Add keyboard shortcuts to V2 Exam interface#95

Merged
godie merged 1 commit into
masterfrom
feat/v2-exam-shortcuts-1616224251523807695
May 28, 2026
Merged

🎨 Palette: Add keyboard shortcuts to V2 Exam interface#95
godie merged 1 commit into
masterfrom
feat/v2-exam-shortcuts-1616224251523807695

Conversation

@godie
Copy link
Copy Markdown
Owner

@godie godie commented May 25, 2026

Implemented keyboard shortcuts (1-4, A-D, Enter) in the V2 Exam interface with visual discoverability hints and accessibility improvements.


PR created automatically by Jules for task 1616224251523807695 started by @godie

Summary:
This PR implements a significant micro-UX improvement for the ENARM V2 exam-taking experience by adding keyboard shortcuts and discoverability hints.

💡 What:
- Added global keyboard listeners for numeric (1-4) and alpha (A-D) keys to select answers.
- Mapped 'Enter' key to "Confirmar Respuesta" and "Siguiente/Ver Resumen" actions.
- Added visual bracketed hints (e.g., [1], [Enter]) to relevant interactive elements.
- Enhanced ARIA labels and title attributes with shortcut information.

🎯 Why:
To improve efficiency and reduce friction during high-repetition study sessions, allowing users to stay in "flow state" without relying exclusively on mouse/touch interaction.

♿ Accessibility:
- Updated `aria-label` on answer buttons to include shortcut info (e.g., "Opción A (atajo: 1)").
- Updated `aria-label` and `title` on action buttons with shortcut info (e.g., "Confirmar respuesta (atajo: Enter)").
- Decorative icons and hints are marked appropriately to avoid screen reader noise.

Tests:
- Added 3 new unit tests in `V2Examen.test.jsx` verifying '1', 'a', and 'Enter' shortcuts.
- Verified visual changes and keyboard functionality with Playwright automated screenshots.

Co-authored-by: godie <227743+godie@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@godie godie merged commit 91eec10 into master May 28, 2026
1 check passed
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.

1 participant