mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
HackStudio: Make use of existing TextEditor::on_focusin callback
This commit is contained in:
parent
5aab31dc40
commit
4c551bfad9
3 changed files with 1 additions and 16 deletions
|
@ -146,18 +146,6 @@ EditorWrapper const& Editor::wrapper() const
|
|||
return static_cast<EditorWrapper const&>(*parent());
|
||||
}
|
||||
|
||||
void Editor::focusin_event(GUI::FocusEvent& event)
|
||||
{
|
||||
if (on_focus)
|
||||
on_focus();
|
||||
GUI::TextEditor::focusin_event(event);
|
||||
}
|
||||
|
||||
void Editor::focusout_event(GUI::FocusEvent& event)
|
||||
{
|
||||
GUI::TextEditor::focusout_event(event);
|
||||
}
|
||||
|
||||
Gfx::IntRect Editor::gutter_icon_rect(size_t line_number) const
|
||||
{
|
||||
return gutter_content_rect(line_number).translated(frame_thickness(), 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue