Skip to content

bug: isKeyDown and isButtonDown get stuck when cmd-tabbing on mac #1094

@Stanko

Description

@Stanko

Bug Description

When holding a key or a button and use cmd-tab to change to other application, isKeyDown() (or isButtonDown()) get stuck and report astrue until the key/button is pressed again. I created a small example at playground where you can test it.

I'm not sure if this is a mac only issue.

Version

4000.0.0-alpha.27

Playground Link

https://play.kaplayjs.com/?code=eJydkU9rwjAYh%2B%2F5FC%2F1YAK1tiA7KM6LN4%2By09ghS2ItcUlIU7QMv%2FvyR6EIRVxuCb%2Fn9yRv5nPYO2pdCxSUOENNfwRiWrUOJKxBUnOiPf5F4Nc3ZbK2ulN8CdNJFdc0R1eyQjfkJA4uUAXlHH%2FKwugWy4IJ5YTFJJ7OqkWZQ0lIHmKKHbXFWUpk8UwbyhrX47JYxL0TF4ez0JyRL69KJtvUx2eq%2F5li81DVmSceb5m9vezpzFDC9VmNa16sDmWpHPmI%2BjCcOoExgfU7pK8M47zDUdu0O9FvPXcfNWyggiX44lUk4ljGkNvMHpnOjAHh8Y%2FpcOuxfHrRkLgShNAfZ3LQmw%3D%3D&version=4000.0.0-alpha.27

Extra information

No response

Summary

  • Fixed in v4000
  • Fixed in v3001

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions