Skip to content

Handling of Enter-key #172

@joho1968

Description

@joho1968

To some extent, this is related to #168, but it's not the same.

If I have a list of clickable items that, once clicked, open a Tingle modal, the link is still active (if no other element in the modal receives focus). If I hit the key, the browser's default behaviour is to act on the clickable item again, thus opening another modal (depending on how it's implemented of course).

Using this.blur() in the event handler will, of course, also work. But somehow I think Tingle should handle this better as it's a "modal".

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