mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09: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: 19d34414bc
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") {
|
} else if (sequence == "k" || sequence == "\e[A") {
|
||||||
if (!emulate_more)
|
if (!emulate_more)
|
||||||
pager.up();
|
pager.up();
|
||||||
} else if (sequence == " ") {
|
} else if (sequence == " " || sequence == "\e[6~") {
|
||||||
pager.down_page();
|
pager.down_page();
|
||||||
|
} else if (sequence == "\e[5~") {
|
||||||
|
pager.up_page();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quit_at_eof && pager.at_end())
|
if (quit_at_eof && pager.at_end())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue