Skip to content

Redundant isKeyPressed property #7444

Open
@bensgilbert

Description

Topic

Whilst looking through the codebase's event handling logic I found this property that doesn't seem to be used or documented. Here is the Github search result:
image
As you can see from the image above, it's only referenced four times in the codebase, and only once in a file that isn't for testing.
I may be mistaken but it doesn't actually seem to be used for anything as it's replaced by keyIsDown which is documented.
This brings up the question, is there any point keeping track of this variable and should it be removed (I think it should as there's no point keeping it).

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions