LibGUI: Always paint the cursor visible when focusing a TextEditor

If the cursor happened to be blinking in the invisible state, it would
take 500ms before we actually see the cursor in a newly focused editor
widget. This patch makes it show up right away.
This commit is contained in:
Andreas Kling 2020-05-21 17:37:28 +02:00
parent 4806cd122d
commit 4cdbdf0a84
Notes: sideshowbarker 2024-07-19 06:16:53 +09:00

View file

@ -1086,6 +1086,7 @@ void TextEditor::set_cursor(const TextPosition& a_position)
void TextEditor::focusin_event(Core::Event&)
{
m_cursor_state = true;
update_cursor();
start_timer(500);
}