Pārlūkot izejas kodu

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.
Andreas Kling 5 gadi atpakaļ
vecāks
revīzija
4cdbdf0a84
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      Libraries/LibGUI/TextEditor.cpp

+ 1 - 0
Libraries/LibGUI/TextEditor.cpp

@@ -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);
 }