bevyengine/bevy

`KeyboardInput` events not being triggered by MacOS native overlays

Opened this issue · 0 comments

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.