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

Clicking on draw2d canvas doesn't take focus away from inputs #242

Open
28raining opened this issue Jul 2, 2023 · 0 comments
Open

Clicking on draw2d canvas doesn't take focus away from inputs #242

28raining opened this issue Jul 2, 2023 · 0 comments

Comments

@28raining
Copy link

Because of this code

if (!target.is("input") && !target.is("textarea")) {

if a text input is clicked and THEN canvas is clicked, keyup and keydown (for example delete) don't do anything.

Somehow if the canvas is clicked it needs to steal back focus from any selected input / radio button etc.

I couldn't figure it out so locally I commented that code

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