mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
[XForms] Add handling of up, down, page up, and page down to range control. Bug 316624, r=aaronr+smaug
This commit is contained in:
parent
77cdd3d161
commit
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>
|
||||
|
Loading…
Reference in New Issue
Block a user