diff --git a/Libraries/LibLine/Editor.cpp b/Libraries/LibLine/Editor.cpp index fd39cfa08b8..1bc92ce58f9 100644 --- a/Libraries/LibLine/Editor.cpp +++ b/Libraries/LibLine/Editor.cpp @@ -107,7 +107,7 @@ void Editor::insert(const char ch) ++m_cursor; } -void Editor::on_char_input(char ch, Function callback) +void Editor::register_character_input_callback(char ch, Function callback) { if (m_key_callbacks.contains(ch)) { dbg() << "Key callback registered twice for " << ch; diff --git a/Libraries/LibLine/Editor.h b/Libraries/LibLine/Editor.h index dc94c64d78d..62804748a84 100644 --- a/Libraries/LibLine/Editor.h +++ b/Libraries/LibLine/Editor.h @@ -74,7 +74,7 @@ public: void add_to_history(const String&); const Vector& history() const { return m_history; } - void on_char_input(char ch, Function callback); + void register_character_input_callback(char ch, Function callback); Function(const String&)> on_tab_complete_first_token = nullptr; Function(const String&)> on_tab_complete_other_token = nullptr;