config: add new key-binding 'quit', unbound by default

Closes #1475
This commit is contained in:
Daniel Eklöf 2024-04-10 19:26:23 +02:00
parent fa07c1ec67
commit b400903e25
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 13 additions and 1 deletions

View file

@ -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);