1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

LibGUI: Model-less views should not swallow key events

At least pass them up to GUI::Widget so they can be handled there.
This commit is contained in:
Andreas Kling 2020-10-28 21:21:50 +01:00
parent b5bd05b717
commit 80e12999c4
Notes: sideshowbarker 2024-07-19 01:40:52 +09:00
3 changed files with 3 additions and 3 deletions

View file

@ -433,7 +433,7 @@ void TreeView::did_update_selection()
void TreeView::keydown_event(KeyEvent& event)
{
if (!model())
return;
return AbstractTableView::keydown_event(event);
if (event.key() == KeyCode::Key_Space) {
if (model()->row_count(cursor_index()))