🎨 Palette: Add keyboard shortcuts to V2 Exam interface#95
Conversation
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>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
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