1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:45:07 +00:00

LibGUI: GTextBox should only run a caret blink timer when focused.

This commit is contained in:
Andreas Kling 2019-02-04 10:34:56 +01:00
parent c0cffe1134
commit bc6ff35428
3 changed files with 14 additions and 2 deletions

View file

@ -39,8 +39,9 @@ void GWidget::event(GEvent& event)
m_has_pending_paint_event = false;
return paint_event(static_cast<GPaintEvent&>(event));
case GEvent::FocusIn:
case GEvent::FocusOut:
return focusin_event(event);
case GEvent::FocusOut:
return focusout_event(event);
case GEvent::Show:
return show_event(static_cast<GShowEvent&>(event));
case GEvent::Hide: