mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Avoid deadlocks by using lambdas for context lock (#2625)
ctx.input().key_pressed(Key::A) -> ctx.input(|i| i.key_pressed(Key::A))
This commit is contained in:
@@ -55,7 +55,7 @@ persistence = [
|
||||
## `eframe` will call `puffin::GlobalProfiler::lock().new_frame()` for you
|
||||
puffin = ["dep:puffin", "egui_glow?/puffin", "egui-wgpu?/puffin"]
|
||||
|
||||
## Enable screen reader support (requires `ctx.options().screen_reader = true;`)
|
||||
## Enable screen reader support (requires `ctx.options_mut(|o| o.screen_reader = true);`)
|
||||
screen_reader = ["egui-winit/screen_reader", "tts"]
|
||||
|
||||
## If set, eframe will look for the env-var `EFRAME_SCREENSHOT_TO` and write a screenshot to that location, and then quit.
|
||||
|
||||
Reference in New Issue
Block a user