LibGUI: GTextBox should only run a caret blink timer when focused.

This commit is contained in:
Andreas Kling 2019-02-04 10:34:56 +01:00
commit bc6ff35428
Notes: sideshowbarker 2024-07-19 15:52:32 +09:00
3 changed files with 14 additions and 2 deletions

View file

@ -20,6 +20,8 @@ private:
virtual void mousedown_event(GMouseEvent&) override;
virtual void keydown_event(GKeyEvent&) override;
virtual void timer_event(GTimerEvent&) override;
virtual void focusin_event(GEvent&) override;
virtual void focusout_event(GEvent&) override;
virtual bool accepts_focus() const override { return true; }
void handle_backspace();