LibGUI: Move keyboard item activation up to AbstractView

All views want the same behavior, so move this to the base class. :^)
This commit is contained in:
Andreas Kling 2020-09-24 21:35:47 +02:00
commit d3adbed231
Notes: sideshowbarker 2024-07-19 02:15:11 +09:00
8 changed files with 9 additions and 40 deletions

View file

@ -166,11 +166,6 @@ void TableView::keydown_event(KeyEvent& event)
if (!model())
return;
if (event.key() == KeyCode::Key_Return) {
activate(cursor_index());
return;
}
AbstractTableView::keydown_event(event);
if (event.is_accepted())