# key_bindings_reset

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L251
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-key_bindings_reset/

```c
void key_bindings_reset(const char *name, key_code key)
```

## Parameters

- `name` (`const char *`)
- `key` (`key_code`)

## Called by

- [`key_bindings_reset_table`](/en/tmux/3.2a/reference/c-function-key_bindings_reset_table/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L313)
- [`window_customize_reset_key`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_reset_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1323)

## Calls

- [`cmd_list_free`](/en/tmux/3.2a/reference/c-function-cmd_list_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L270)
- [`key_bindings_get_default`](/en/tmux/3.2a/reference/c-function-key_bindings_get_default/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L264)
- [`key_bindings_get_table`](/en/tmux/3.2a/reference/c-function-key_bindings_get_table/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L256)
- [`key_bindings_remove`](/en/tmux/3.2a/reference/c-function-key_bindings_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L266)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L276)

## Other function references

- [`key_bindings_get`](/en/tmux/3.2a/reference/c-function-key_bindings_get/) (function)

## Referenced declarations

- [`key_binding.cmdlist`](/en/tmux/3.2a/reference/c-struct-key_binding-cmdlist/) (attribute)
- [`key_binding.flags`](/en/tmux/3.2a/reference/c-struct-key_binding-flags/) (attribute)
- [`key_binding.key`](/en/tmux/3.2a/reference/c-struct-key_binding-key/) (attribute)
- [`key_code`](/en/tmux/3.2a/reference/c-typedef-key_code/) (typealias)
- [`KEYC_MASK_FLAGS`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_mask_flags/) (constant)
- [`key_binding.note`](/en/tmux/3.2a/reference/c-struct-key_binding-note/) (attribute)
- [`cmd_list.references`](/en/tmux/3.2a/reference/c-struct-cmd_list-references/) (attribute)
