winit-sonoma-fix/src/platform_impl
Murarth 35505a3114
X11: Sync key press/release with window focus (#1296)
* X11: Sync key press/release with window focus

* When a window loses focus, key release events are issued for all pressed keys
* When a window gains focus, key press events are issued for all pressed keys
* Adds `is_synthetic` field to `WindowEvent` variant `KeyboardInput`
  to indicate that these events are synthetic.
* Adds `is_synthetic: false` to `WindowEvent::KeyboardInput` events issued
  on all other platforms

* Clarify code with comments
2019-12-07 15:51:37 -07:00
..
android Have EventLoopClosed contain the original event (#1294) 2019-12-07 10:22:03 -07:00
ios Have EventLoopClosed contain the original event (#1294) 2019-12-07 10:22:03 -07:00
linux X11: Sync key press/release with window focus (#1296) 2019-12-07 15:51:37 -07:00
macos X11: Sync key press/release with window focus (#1296) 2019-12-07 15:51:37 -07:00
web X11: Sync key press/release with window focus (#1296) 2019-12-07 15:51:37 -07:00
windows X11: Sync key press/release with window focus (#1296) 2019-12-07 15:51:37 -07:00
mod.rs Merge branch 'master' into merge-master-to-web 2019-09-24 14:21:18 -04:00