mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
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:
parent
4806cd122d
commit
4cdbdf0a84
1 changed files with 1 additions and 0 deletions
|
@ -1086,6 +1086,7 @@ void TextEditor::set_cursor(const TextPosition& a_position)
|
||||||
|
|
||||||
void TextEditor::focusin_event(Core::Event&)
|
void TextEditor::focusin_event(Core::Event&)
|
||||||
{
|
{
|
||||||
|
m_cursor_state = true;
|
||||||
update_cursor();
|
update_cursor();
|
||||||
start_timer(500);
|
start_timer(500);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue