mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +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
Notes:
sideshowbarker
2024-07-19 00:04:13 +09:00
Author: https://github.com/alimpfard
Commit: 4c98d00bef
Pull-request: https://github.com/SerenityOS/serenity/pull/4828
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