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:
parent
41bcabd9aa
commit
da475ce3f5
6 changed files with 43 additions and 39 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue