Allow horizontal scrolling with left/right arrow keys.

This commit is contained in:
Glenn Watson 2016-01-18 10:21:55 +10:00
parent 380541bd48
commit d9c643167f

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);