mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibGUI: Redraw button on Key_{Return,Space} up event
Fixes buttons not getting redrawn after pressing them with return or space key.
This commit is contained in:
@@ -165,6 +165,7 @@ void AbstractButton::keyup_event(KeyEvent& event)
|
||||
m_being_pressed = false;
|
||||
if (was_being_pressed && (event.key() == KeyCode::Key_Return || event.key() == KeyCode::Key_Space)) {
|
||||
click(event.modifiers());
|
||||
update();
|
||||
event.accept();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user