Skip to content

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

@descodifica

Description

@descodifica

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?

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