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:
Jessica McKellar 2012-10-05 15:51:47 -04:00
parent 6de37bc9ad
commit a282f7b32b
1 changed files with 6 additions and 0 deletions

View File

@ -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();