From b400903e25de321dffd310e30d76dad121ccceb1 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 10 Apr 2024 19:26:23 +0200 Subject: config: add new key-binding 'quit', unbound by default Closes #1475 --- input.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'input.c') diff --git a/input.c b/input.c index 1a42e5ee..26f62629 100644 --- a/input.c +++ b/input.c @@ -444,6 +444,10 @@ execute_binding(struct seat *seat, struct terminal *term, unicode_mode_activate(seat); return true; + case BIND_ACTION_QUIT: + term_shutdown(term); + return true; + case BIND_ACTION_SELECT_BEGIN: selection_start( term, seat->mouse.col, seat->mouse.row, SELECTION_CHAR_WISE, false); -- cgit v1.3