Process ctrl-c when not in urgent event mode as well
This commit is contained in:
parent
da9f688f37
commit
7c87abe856
|
@ -52,10 +52,15 @@ void Client::handle_available_input(EventMode mode)
|
||||||
m_pending_keys.clear();
|
m_pending_keys.clear();
|
||||||
|
|
||||||
while (m_ui->is_key_available())
|
while (m_ui->is_key_available())
|
||||||
|
{
|
||||||
|
if (key == ctrl('c'))
|
||||||
|
killpg(getpgrp(), SIGINT);
|
||||||
|
else
|
||||||
{
|
{
|
||||||
m_input_handler.handle_key(m_ui->get_key());
|
m_input_handler.handle_key(m_ui->get_key());
|
||||||
m_input_handler.clear_mode_trash();
|
m_input_handler.clear_mode_trash();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
context().window().forget_timestamp();
|
context().window().forget_timestamp();
|
||||||
}
|
}
|
||||||
catch (Kakoune::runtime_error& error)
|
catch (Kakoune::runtime_error& error)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user