Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of Enter-key #172

Open
joho1968 opened this issue Sep 8, 2021 · 0 comments
Open

Handling of Enter-key #172

joho1968 opened this issue Sep 8, 2021 · 0 comments

Comments

@joho1968
Copy link

joho1968 commented Sep 8, 2021

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant