Description
“key-release events” = KeyboardInput events with ElementState::Released.
Example 1: If I pressed Space before releasing A with the builtin Chinese IME, the key-release events for both Space and A are leaked.

Example 2: If I pressed Enter to commit with the builtin Japanese IME, the key-release event for Enter is leaked:

Example 3: If I typed something with the builtin Chinese IME, and used Backspace to remove everything I typed, the key-release event of the last Backspace is leaked:

The ideal behavior should look like the Wayland + IBus one demonstrated in #4508.
Reproduction
https://gist.github.com/umajho/5f42a9cfe49ecfe61d4a9753796d00f2
macOS version
ProductName: macOS
ProductVersion: 15.7.3
BuildVersion: 24G419
Winit version
0.30.13
Description
“key-release events” =
KeyboardInputevents withElementState::Released.Example 1: If I pressed Space before releasing A with the builtin Chinese IME, the key-release events for both Space and A are leaked.

Example 2: If I pressed Enter to commit with the builtin Japanese IME, the key-release event for Enter is leaked:

Example 3: If I typed something with the builtin Chinese IME, and used Backspace to remove everything I typed, the key-release event of the last Backspace is leaked:

The ideal behavior should look like the Wayland + IBus one demonstrated in #4508.
Reproduction
https://gist.github.com/umajho/5f42a9cfe49ecfe61d4a9753796d00f2
macOS version
Winit version
0.30.13