diff --git a/src/client.cc b/src/client.cc index 39c3bc34..d4b1dfbc 100644 --- a/src/client.cc +++ b/src/client.cc @@ -53,8 +53,13 @@ void Client::handle_available_input(EventMode mode) while (m_ui->is_key_available()) { - m_input_handler.handle_key(m_ui->get_key()); - m_input_handler.clear_mode_trash(); + if (key == ctrl('c')) + killpg(getpgrp(), SIGINT); + else + { + m_input_handler.handle_key(m_ui->get_key()); + m_input_handler.clear_mode_trash(); + } } context().window().forget_timestamp(); }