Skip to content

Track key state more reliably #17100

Open

Description

@MartinZikmund

What would you like to be added

Currently we use KeyboardStateTracker to keep track of key state. This approach is flawed as we don't always receive key up (e.g. when Windows key is pressed, we get key down, but don't get key up as the app window deactivates, so the key stays pressed forever). We should get the actual key state from the OS instead whenever possible.

In addition KeyboardStateTracker is now called mutliple times - for the original element and for all parents as it bubbles - which makes it toggle between locked and unlocked state as well

Why is this needed

Reliability.

For which platform

No response

Anything else we need to know?

No response

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    on Jun 12, 2024
  2. added
    project/input ⌨️
    project/keyboard ⌨️
    and removed
    project/input ⌨️
    triage/untriaged
    on Jun 12, 2024
  3. github-actions commented on Aug 22, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  4. added
    stale
    on Aug 22, 2025
  5. removed
    stale
    on Aug 25, 2025
  6. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  7. added
    stale
    on May 5, 2026
  8. removed
    stale
    on May 5, 2026
  9. 14 remaining items

  10. Jen-Uno commented on Oct 28, 2026

    @Jen-Uno
    Contributor

    This issue was closed as not planned, so there is nothing for QA to verify. Moving it from Ready for QA Review to Done on the Uno Team Backlog.

  11. removed
    stale
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/tbdkind/enhancementproject/keyboard ⌨️

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions