mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Correct unicode handling for text input
This commit is contained in:
parent
78210c3c94
commit
26e6c09776
5 changed files with 17 additions and 7 deletions
|
@ -1112,7 +1112,7 @@ impl VirtualMethods for HTMLInputElement {
|
|||
translated_y
|
||||
);
|
||||
if let Some(i) = index {
|
||||
self.textinput.borrow_mut().edit_point.index = i as usize;
|
||||
self.textinput.borrow_mut().set_edit_point_index(i as usize);
|
||||
// trigger redraw
|
||||
self.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage);
|
||||
event.PreventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue