Skip to content

Differentiating between the user and code setting focus #577

Open
@ben-lu-uw

Description

@ben-lu-uw

In #533 I made it so that the screen reader announces the location when the map is focused. However, we seem to use .focus() on the map container a lot, for example, when clicking a feature link the screen reader will announce the focus message even though the user did not focus the map themselves. There's now a mix where either the user focuses on the map or we forced the focus through JS but they both fire the same event. Should we introduce a new event for when the user focuses or try and have a different approach instead of forcing focus changes or something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions