mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00: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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user