1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Fix deadlock during text selection

This commit is contained in:
Emil Ernerfeldt
2024-01-19 15:48:45 +01:00
parent f034f6db9f
commit d319489479

View File

@@ -116,6 +116,7 @@ fn process_selection_key_events(
cursor_range: &mut CursorRange,
) {
let mut copy_text = None;
let os = ctx.os();
ctx.input(|i| {
// NOTE: we have a lock on ui/ctx here,
@@ -139,7 +140,7 @@ fn process_selection_key_events(
}
event => {
cursor_range.on_event(ctx.os(), event, galley, widget_id);
cursor_range.on_event(os, event, galley, widget_id);
}
}
}