зеркало из https://github.com/mozilla/pjs.git
[XForms] Add handling of up, down, page up, and page down to range control. Bug 316624, r=aaronr+smaug
This commit is contained in:
Родитель
841811ca95
Коммит
5e2081f9b0
|
@ -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>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче