LibWeb: Reset cursor blink cycle when focus changes

This makes sure the caret starts blinking immediately on programmatic
focus changes to <input>s and <textarea>s, for example.
This commit is contained in:
Jelle Raaijmakers 2026-02-10 11:27:40 +01:00 committed by Jelle Raaijmakers
parent d3a2e4bbbb
commit dbd09454c4

View file

@ -2627,6 +2627,8 @@ void Document::set_focused_area(GC::Ptr<Node> node)
if (new_focused_element)
new_focused_element->did_receive_focus();
reset_cursor_blink_cycle();
if (paintable())
paintable()->set_needs_display();