mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 17:15:44 +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:
committed by
Andreas Kling
parent
277fc41f47
commit
4c98d00bef
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user