mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
Utilities: Make less
accept 'page up' and 'page down' keys
This commit is contained in:
parent
f99507bf02
commit
19d34414bc
Notes:
sideshowbarker
2024-07-18 09:11:21 +09:00
Author: https://github.com/teranos 🔰 Commit: https://github.com/SerenityOS/serenity/commit/19d34414bcc Pull-request: https://github.com/SerenityOS/serenity/pull/8681 Reviewed-by: https://github.com/gunnarbeutner ✅
1 changed files with 3 additions and 1 deletions
|
@ -369,8 +369,10 @@ int main(int argc, char** argv)
|
|||
} else if (sequence == "k" || sequence == "\e[A") {
|
||||
if (!emulate_more)
|
||||
pager.up();
|
||||
} else if (sequence == " ") {
|
||||
} else if (sequence == " " || sequence == "\e[6~") {
|
||||
pager.down_page();
|
||||
} else if (sequence == "\e[5~") {
|
||||
pager.up_page();
|
||||
}
|
||||
|
||||
if (quit_at_eof && pager.at_end())
|
||||
|
|
Loading…
Reference in a new issue