Skip to content

Bug: Space key blocked when button focused — timer unusable via keyboard #92

Description

@Siddh2024

Summary

In src/App.jsx lines 373-375, the space key handler returns early when any <button> or <select> element is focused. Keyboard-only users who Tab through the sidebar cannot start/stop the timer.

Details

  • File: src/App.jsx lines 373-375
  • if (document.activeElement.tagName === 'BUTTON' || document.activeElement.tagName === 'SELECT') return;
  • The timer's touch surface also lacks role="button" and tabIndex

Impact

Violates WCAG 2.1.1 (Keyboard). Users who navigate via keyboard cannot operate the timer, which is the core functionality of the app.

Suggested Fix

Allow Space to activate the timer regardless of focused element, or ensure the timer button is focusable via Tab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions