diff options
author | LuK1337 <priv.luk@gmail.com> | 2021-08-03 13:23:27 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-08-03 14:02:28 +0200 |
commit | 46d4ef5e1186c8ec3b1ccfec859f680a2f9f26ba (patch) | |
tree | 37c4a90271b176860cec23bfb52b15855f6e6ae6 | |
parent | f2a1ee327f8f09ea6de9a4b96445dac6531bea39 (diff) | |
download | serenity-46d4ef5e1186c8ec3b1ccfec859f680a2f9f26ba.zip |
LibGUI: Redraw button on Key_{Return,Space} up event
Fixes buttons not getting redrawn after pressing them with return or
space key.
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractButton.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractButton.cpp b/Userland/Libraries/LibGUI/AbstractButton.cpp index ce8fa8bdb2..f23a0aa46a 100644 --- a/Userland/Libraries/LibGUI/AbstractButton.cpp +++ b/Userland/Libraries/LibGUI/AbstractButton.cpp @@ -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; } |