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

key.enabled = false losing effect when changing window/tab #6098

Closed
descodifica opened this issue May 5, 2022 · 1 comment
Closed

key.enabled = false losing effect when changing window/tab #6098

descodifica opened this issue May 5, 2022 · 1 comment

Comments

@descodifica
Copy link

I use 'this.input.keyboard.keys[key.keyCode].enabled = false'' to disable control keys while the user types in a text field.

It works, but when I change the OS window or the browser tab, when I return to the game it becomes active again, even if I run the command 'this.input.keyboard.keys[key.keyCode].enabled = false'

How to ensure that the key remains inactive?

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

2 participants