script: Ask layout to redraw the selection whenever the user moves the

caret in an input element.
This commit is contained in:
Patrick Walton 2015-09-15 16:26:01 -07:00
parent 4a53c873f5
commit 34d9a6091b
3 changed files with 18 additions and 11 deletions

View file

@ -350,6 +350,9 @@ impl VirtualMethods for HTMLTextAreaElement {
self.force_relayout();
}
KeyReaction::RedrawSelection => {
self.force_relayout();
}
KeyReaction::Nothing => (),
}
});