Added call to event.PreventDefault on html text inputs and textareas.

This change should prevent page scrolling when up/down buttons are pressed.
This commit is contained in:
Sylvester Willis 2015-11-07 02:07:12 -05:00
parent abf2dfea05
commit 4adf502846
2 changed files with 3 additions and 0 deletions

View file

@ -352,9 +352,11 @@ impl VirtualMethods for HTMLTextAreaElement {
}
self.force_relayout();
event.PreventDefault();
}
KeyReaction::RedrawSelection => {
self.force_relayout();
event.PreventDefault();
}
KeyReaction::Nothing => (),
}