mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Allow horizontal scrolling with left/right arrow keys.
This commit is contained in:
parent
380541bd48
commit
d9c643167f
1 changed files with 6 additions and 0 deletions
|
@ -702,6 +702,12 @@ impl WindowMethods for Window {
|
||||||
(NONE, Key::Down) => {
|
(NONE, Key::Down) => {
|
||||||
self.scroll_window(0.0, -3.0 * LINE_HEIGHT);
|
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);
|
self.platform_handle_key(key, mods);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue