mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
parent
5204c9062c
commit
3a231c00aa
Notes:
sideshowbarker
2024-07-18 22:32:47 +09:00
Author: https://github.com/alimpfard
Commit: 3a231c00aa
Pull-request: https://github.com/SerenityOS/serenity/pull/5246
Issue: https://github.com/SerenityOS/serenity/issues/5233
3 changed files with 13 additions and 1 deletions
|
@ -539,7 +539,7 @@ void Editor::interrupted()
|
|||
|
||||
m_was_interrupted = true;
|
||||
handle_interrupt_event();
|
||||
if (!m_finish)
|
||||
if (!m_finish || !m_previous_interrupt_was_handled_as_interrupt)
|
||||
return;
|
||||
|
||||
m_finish = false;
|
||||
|
@ -681,11 +681,14 @@ void Editor::try_update_once()
|
|||
void Editor::handle_interrupt_event()
|
||||
{
|
||||
m_was_interrupted = false;
|
||||
m_previous_interrupt_was_handled_as_interrupt = false;
|
||||
|
||||
m_callback_machine.interrupted(*this);
|
||||
if (!m_callback_machine.should_process_last_pressed_key())
|
||||
return;
|
||||
|
||||
m_previous_interrupt_was_handled_as_interrupt = true;
|
||||
|
||||
fprintf(stderr, "^C");
|
||||
fflush(stderr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue