mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibGUI: Allow moving the TableView selection horizontally with keyboard
This commit is contained in:
parent
e5a6e297bf
commit
2cbe290930
Notes:
sideshowbarker
2024-07-19 03:12:14 +09:00
Author: https://github.com/awesomekling
Commit: 2cbe290930
3 changed files with 13 additions and 5 deletions
|
@ -162,12 +162,20 @@ void TableView::keydown_event(KeyEvent& event)
|
|||
activate_selected();
|
||||
return;
|
||||
}
|
||||
if (event.key() == KeyCode::Key_Left) {
|
||||
move_selection(0, -1);
|
||||
return;
|
||||
}
|
||||
if (event.key() == KeyCode::Key_Right) {
|
||||
move_selection(0, 1);
|
||||
return;
|
||||
}
|
||||
if (event.key() == KeyCode::Key_Up) {
|
||||
move_selection(-1);
|
||||
move_selection(-1, 0);
|
||||
return;
|
||||
}
|
||||
if (event.key() == KeyCode::Key_Down) {
|
||||
move_selection(1);
|
||||
move_selection(1, 0);
|
||||
return;
|
||||
}
|
||||
if (event.key() == KeyCode::Key_PageUp) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue