mirror of https://github.com/linebender/xilem
Add missing `request_render` call when setting text selection from AccessKit (#803)
Without this, the updated text selection is neither painted nor reflected in an updated accessibility tree until the user presses a key.
This commit is contained in:
parent
5e854382b2
commit
642818dcee
|
@ -847,6 +847,12 @@ impl<const EDITABLE: bool> Widget for TextArea<EDITABLE> {
|
||||||
self.editor
|
self.editor
|
||||||
.driver(fctx, lctx)
|
.driver(fctx, lctx)
|
||||||
.select_from_accesskit(selection);
|
.select_from_accesskit(selection);
|
||||||
|
let new_generation = self.editor.generation();
|
||||||
|
if new_generation != self.rendered_generation {
|
||||||
|
ctx.request_render();
|
||||||
|
ctx.set_ime_area(self.ime_area());
|
||||||
|
self.rendered_generation = new_generation;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue