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:
parent
d3a2e4bbbb
commit
dbd09454c4
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue