From fcf85d8feffa4f838446f674e27065dd828b1d26 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 27 Aug 2019 20:16:52 +0200 Subject: [PATCH] GTextEditor: Always call did_change() after deleting with backspace This is needed for the on_change callback to fire. --- Libraries/LibGUI/GTextEditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibGUI/GTextEditor.cpp b/Libraries/LibGUI/GTextEditor.cpp index 622503d07f..f005e8fdc6 100644 --- a/Libraries/LibGUI/GTextEditor.cpp +++ b/Libraries/LibGUI/GTextEditor.cpp @@ -616,6 +616,7 @@ void GTextEditor::keydown_event(GKeyEvent& event) current_line().remove(m_cursor.column() - 1); update_content_size(); set_cursor(m_cursor.line(), m_cursor.column() - 1); + did_change(); return; } if (m_cursor.column() == 0 && m_cursor.line() != 0) { @@ -627,6 +628,7 @@ void GTextEditor::keydown_event(GKeyEvent& event) update_content_size(); update(); set_cursor(m_cursor.line() - 1, previous_length); + did_change(); return; } return;