mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:35:08 +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:
parent
b5bd05b717
commit
80e12999c4
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue