Auto merge of #9359 - glennw:scroll-horizontal, r=KiChjang

Allow horizontal scrolling with left/right arrow keys.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9359)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-01-18 07:01:57 +05:30
commit 2cfed414d0

View file

@ -702,6 +702,12 @@ impl WindowMethods for Window {
(NONE, Key::Down) => {
self.scroll_window(0.0, -3.0 * LINE_HEIGHT);
}
(NONE, Key::Left) => {
self.scroll_window(LINE_HEIGHT, 0.0);
}
(NONE, Key::Right) => {
self.scroll_window(-LINE_HEIGHT, 0.0);
}
_ => {
self.platform_handle_key(key, mods);