summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-27 19:29:50 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-27 19:29:50 +0200
commitd2d2361152dd7a34aa35daec21af052e915899e8 (patch)
tree56ee9b85fe36940a95bf2e7ce09b536ca1816b2b /Libraries
parent9f3b1b8e215628d841fb9204edf7eaef7926f72e (diff)
downloadserenity-d2d2361152dd7a34aa35daec21af052e915899e8.zip
LibGUI: Unbreak PageUp/PageDown in AbstractTableView
These key events need to trigger a move_cursor() as well.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibGUI/AbstractTableView.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Libraries/LibGUI/AbstractTableView.cpp b/Libraries/LibGUI/AbstractTableView.cpp
index 847faff311..1ba86b1f7e 100644
--- a/Libraries/LibGUI/AbstractTableView.cpp
+++ b/Libraries/LibGUI/AbstractTableView.cpp
@@ -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);
}