mirror of https://github.com/zulip/zulip.git
Have PageDown at the bottom/PageUp at the top select the last/first zephyr.
As opposed to inching towards it message by message. (imported from commit 31e833dd06bf27336d9b1f293ab992e99537bc21)
This commit is contained in:
parent
6de37bc9ad
commit
a282f7b32b
|
@ -53,9 +53,15 @@ function process_hotkey(code) {
|
|||
switch (code) {
|
||||
case 33: // Page Up
|
||||
keep_pointer_in_view();
|
||||
if (at_top_of_viewport()) {
|
||||
select_zephyr(get_first_visible(), false);
|
||||
}
|
||||
return false; // We want the browser to actually page up and down
|
||||
case 34: // Page Down
|
||||
keep_pointer_in_view();
|
||||
if (at_bottom_of_viewport()) {
|
||||
select_zephyr(get_last_visible(), false);
|
||||
}
|
||||
return false;
|
||||
case 27: // Esc: hide compose pane
|
||||
hide_compose();
|
||||
|
|
Loading…
Reference in New Issue