зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
77cdd3d161
Коммит
d4f51e4e89
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче