mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 04:34:59 +00:00
LibGUI: Unbreak PageUp/PageDown in AbstractTableView
These key events need to trigger a move_cursor() as well.
This commit is contained in:
parent
9f3b1b8e21
commit
d2d2361152
1 changed files with 10 additions and 0 deletions
|
@ -406,6 +406,16 @@ void AbstractTableView::keydown_event(KeyEvent& event)
|
|||
event.accept();
|
||||
return;
|
||||
}
|
||||
if (event.key() == KeyCode::Key_PageUp) {
|
||||
move_cursor(CursorMovement::PageUp, selection_update);
|
||||
event.accept();
|
||||
return;
|
||||
}
|
||||
if (event.key() == KeyCode::Key_PageDown) {
|
||||
move_cursor(CursorMovement::PageDown, selection_update);
|
||||
event.accept();
|
||||
return;
|
||||
}
|
||||
return AbstractView::keydown_event(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue