mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 17:15:44 +00:00
LibGUI: Call up to the correct base class in GUI::TextEditor
This commit is contained in:
@@ -704,7 +704,7 @@ void TextEditor::sort_selected_lines()
|
||||
void TextEditor::keydown_event(KeyEvent& event)
|
||||
{
|
||||
if (is_single_line() && event.key() == KeyCode::Key_Tab)
|
||||
return Widget::keydown_event(event);
|
||||
return ScrollableWidget::keydown_event(event);
|
||||
|
||||
if (is_single_line() && event.key() == KeyCode::Key_Return) {
|
||||
if (on_return_pressed)
|
||||
@@ -1643,7 +1643,7 @@ void TextEditor::did_change_font()
|
||||
vertical_scrollbar().set_step(line_height());
|
||||
recompute_all_visual_lines();
|
||||
update();
|
||||
Widget::did_change_font();
|
||||
ScrollableWidget::did_change_font();
|
||||
}
|
||||
|
||||
void TextEditor::document_did_append_line()
|
||||
|
||||
Reference in New Issue
Block a user