mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +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
Notes:
sideshowbarker
2024-07-18 07:32:46 +09:00
Author: https://github.com/luk1337 Commit: https://github.com/SerenityOS/serenity/commit/46d4ef5e118 Pull-request: https://github.com/SerenityOS/serenity/pull/9187
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
Reference in a new issue