mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 18:28:10 +00:00
LibGUI: Add focus hooks to TextEditor
This commit is contained in:
parent
fd64be02e0
commit
c35493c156
2 changed files with 6 additions and 0 deletions
|
@ -1152,11 +1152,15 @@ void TextEditor::focusin_event(Core::Event&)
|
|||
m_cursor_state = true;
|
||||
update_cursor();
|
||||
start_timer(500);
|
||||
if (on_focusin)
|
||||
on_focusin();
|
||||
}
|
||||
|
||||
void TextEditor::focusout_event(Core::Event&)
|
||||
{
|
||||
stop_timer();
|
||||
if (on_focusout)
|
||||
on_focusout();
|
||||
}
|
||||
|
||||
void TextEditor::timer_event(Core::TimerEvent&)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue