Fix deadlock during text selection

This commit is contained in:
Emil Ernerfeldt 2024-01-19 15:48:45 +01:00
parent f034f6db9f
commit d319489479
1 changed files with 2 additions and 1 deletions

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);
}
}
}