Skip to content

KeyboardInput events not being triggered by MacOS native overlays #13356

Open
@matthunz

Description

@matthunz

Bevy version

v13.2

Relevant system information

This happens on MacOS Sonoma 14.3 and I've been able to confirm it on other people's machines.

What you did

Running cargo run --example keyboard_input_events on Mac shows this issue in action.

What went wrong

Triggering a MacOS native UI overlay, such as with CMD+Shift+4 doesn't release the keys pressed.

bevy.mov

In the winit repo window example, I see the modifier state is being changed when I exit the overlay.

winit.mov

Using the KeyboardInput system in Bevy, however, I don't see any events being fired for those changes, so in our app the modifier keys remain pressed. I think this may just be Bevy not propagating the winit events 🤔 though not sure why just MacOS CMD seems to be affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreA-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorO-MacOSSpecific to the MacOS (Apple) desktop operating system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions