[XForms] Add handling of up, down, page up, and page down to range control. Bug 316624, r=aaronr+smaug

This commit is contained in:
allan%beaufour.dk 2006-01-11 08:51:04 +00:00
parent 77cdd3d161
commit d4f51e4e89

View File

@ -346,8 +346,16 @@
if (event.keyCode == event.DOM_VK_LEFT) {
this.setSlider(this.rVal - move);
} else if (event.keyCode == event.DOM_VK_RIGHT) {
} else if (event.keyCode == event.DOM_VK_RIGHT) {
this.setSlider(this.rVal + move);
} else if (event.keyCode == event.DOM_VK_PAGE_DOWN) {
this.setSlider(this.rVal - move * 2);
} else if (event.keyCode == event.DOM_VK_PAGE_UP) {
this.setSlider(this.rVal + move * 2);
} else if (event.keyCode == event.DOM_VK_HOME) {
this.setSlider(this.rBegin);
} else if (event.keyCode == event.DOM_VK_END) {
this.setSlider(this.rEnd);
}
</body>
</method>