mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
less: Add hotkeys f and b to scroll screen up/down
This commit is contained in:
parent
42a76b6c2d
commit
46ed6303a2
Notes:
sideshowbarker
2024-07-17 19:43:09 +09:00
Author: https://github.com/Yaamboo Commit: https://github.com/SerenityOS/serenity/commit/46ed6303a28 Pull-request: https://github.com/SerenityOS/serenity/pull/12310
|
@ -35,7 +35,8 @@ does not exist, and no command use `N`.
|
|||
| `q` | Exit less. |
|
||||
| `j` or `DOWNARROW` or `ENTER` | Go to the next line. |
|
||||
| `k` or `UPARROW` | Go to the previous line. |
|
||||
| `SPACE` | Go to the next page. |
|
||||
| `f` or `SPACE` | Go to the next page. |
|
||||
| `b` | Go to the previous page. |
|
||||
|
||||
## Prompts
|
||||
|
||||
|
|
|
@ -622,9 +622,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
else
|
||||
pager.bottom();
|
||||
}
|
||||
} else if (sequence == " " || sequence == "\e[6~") {
|
||||
} else if (sequence == " " || sequence == "f" || sequence == "\e[6~") {
|
||||
pager.down_page();
|
||||
} else if (sequence == "\e[5~" && !emulate_more) {
|
||||
} else if ((sequence == "\e[5~" || sequence == "b") && !emulate_more) {
|
||||
pager.up_page();
|
||||
} else if (sequence == "d") {
|
||||
pager.down_half_page();
|
||||
|
|
Loading…
Reference in a new issue