mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +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
Notes:
sideshowbarker
2024-07-19 01:40:52 +09:00
Author: https://github.com/awesomekling
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