mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +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:
parent
f2a1ee327f
commit
46d4ef5e11
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue