Merge pull request #277 from nushell/jonathandturner-patch-2

Add space for pagedown
This commit is contained in:
Jonathan Turner 2019-08-12 05:44:56 +12:00 committed by GitHub
commit bd9af7a0b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ fn scroll_view_lines_if_needed(draw_commands: Vec<DrawCommand>, use_color_buffer
max_bottom_line =
paint_textview(&draw_commands, starting_row, use_color_buffer);
}
if rawkey.is_pressed(rawkey::KeyCode::PageDown) {
if rawkey.is_pressed(rawkey::KeyCode::PageDown) || rawkey.is_pressed(rawkey::KeyCode::Space) {
if starting_row < (max_bottom_line - height) {
starting_row += height;