Skip to content

IsFocused inconsistent on Chrome #3312

@tinne26

Description

@tinne26

Ebitengine Version

2.8.8

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

Go Version (go version)

1.24.0

What steps will reproduce the problem?

When moving to a different tab on Chrome ebiten.IsFocused() will often continue to return true.

What is the expected result?

ebiten.IsFocused() should properly change value when changing tabs (including CTRL+TAB, CTRL+Prev/NextPage and similar shortcuts).

What happens instead?

Sometimes manually opening a new tab will detect the focus change, but in most cases the focus change won't be detected. Waiting doesn't seem to help.

Anything else you feel useful to add?

On Firefox this seems to work properly, consistently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions