mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:55:06 +00:00
LibLine: Don't ignore ^C inputs when there are no registered handlers
Some people really like their ^C's, let's not make them sad.
This commit is contained in:
parent
277fc41f47
commit
4c98d00bef
1 changed files with 2 additions and 0 deletions
|
@ -106,6 +106,8 @@ void KeyCallbackMachine::interrupted(Editor& editor)
|
|||
m_current_matching_keys.clear();
|
||||
if (auto callback = m_key_callbacks.get({ ctrl('C') }); callback.has_value())
|
||||
m_should_process_this_key = callback.value()->callback(editor);
|
||||
else
|
||||
m_should_process_this_key = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue