config: add [key-bindings].noop action

Key combinations assigned to this action will not be sent to the
application.

Closes #765
This commit is contained in:
Daniel Eklöf 2021-10-24 11:49:37 +02:00
parent b2ddacb799
commit bcea929c94
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 18 additions and 5 deletions

View file

@ -87,6 +87,9 @@ execute_binding(struct seat *seat, struct terminal *term,
case BIND_ACTION_NONE:
return true;
case BIND_ACTION_NOOP:
return true;
case BIND_ACTION_SCROLLBACK_UP_PAGE:
if (term->grid == &term->normal) {
cmd_scrollback_up(term, term->rows);