1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:38:12 +00:00

LibLine: Rename on_char_input() => register_character_input_callback()

The "on_foo" format is our convention for public callback members.
This commit is contained in:
Andreas Kling 2020-03-31 13:37:01 +02:00
parent 8ab576308f
commit c7257ed827
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ void Editor::insert(const char ch)
++m_cursor;
}
void Editor::on_char_input(char ch, Function<bool(Editor&)> callback)
void Editor::register_character_input_callback(char ch, Function<bool(Editor&)> callback)
{
if (m_key_callbacks.contains(ch)) {
dbg() << "Key callback registered twice for " << ch;