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

@ -196,7 +196,7 @@ void ListView::mousemove_event(MouseEvent& event)
void ListView::keydown_event(KeyEvent& event)
{
if (!model())
return;
return AbstractView::keydown_event(event);
if (event.key() == KeyCode::Key_Escape) {
if (on_escape_pressed)