From 7c87abe8565a95cf3d8c815c43879930de9bf4cb Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 26 Nov 2014 19:24:58 +0000 Subject: [PATCH] Process ctrl-c when not in urgent event mode as well --- src/client.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(); }