mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-24 23:23:58 +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
Notes:
sideshowbarker
2024-07-19 06:16:53 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4cdbdf0a84d
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&)
|
||||
{
|
||||
m_cursor_state = true;
|
||||
update_cursor();
|
||||
start_timer(500);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue