1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-16 02:02:09 +00:00

LibGUI: Refactor the keyboard activation code a bit to use WeakPtr<GWidget>.

This commit is contained in:
Andreas Kling 2019-06-21 10:09:57 +02:00
parent 41bcabd9aa
commit da475ce3f5
6 changed files with 43 additions and 39 deletions

View file

@ -66,7 +66,7 @@ void GButton::click()
on_click(*this);
}
bool GButton::accepts_keyboard_select() const
bool GButton::supports_keyboard_activation() const
{
return is_enabled();
}