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:
parent
8ab576308f
commit
c7257ed827
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue