1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibGUI: Add Button double-click callback

This commit is contained in:
Sam Atkins 2023-02-17 11:13:25 +00:00 committed by Linus Groh
parent af03cf9e80
commit 8f717927f2
4 changed files with 17 additions and 1 deletions

View file

@ -160,6 +160,12 @@ void AbstractButton::mouseup_event(MouseEvent& event)
Widget::mouseup_event(event);
}
void AbstractButton::doubleclick_event(GUI::MouseEvent& event)
{
double_click(event.modifiers());
Widget::doubleclick_event(event);
}
void AbstractButton::enter_event(Core::Event&)
{
m_hovered = true;