ctx.input().key_pressed(Key::A) -> ctx.input(|i| i.key_pressed(Key::A))
crates
This crates provides bindings between egui and winit.
egui
winit
The library translates winit events to egui, handled copy/paste, updates the cursor, open links clicked in egui, etc.