[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
Родитель 841811ca95
Коммит 5e2081f9b0
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -346,8 +346,16 @@
if (event.keyCode == event.DOM_VK_LEFT) { if (event.keyCode == event.DOM_VK_LEFT) {
this.setSlider(this.rVal - move); 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); 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> </body>
</method> </method>