# window_customize_set_key

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1256
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_set_key/

```c
static void window_customize_set_key(struct client *c, struct window_customize_modedata *data, struct window_customize_itemdata *item)
```

## Parameters

- `c` (`struct client *`)
- `data` (`struct window_customize_modedata *`)
- `item` (`struct window_customize_itemdata *`)

## Called by

- [`window_customize_key`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1449)

## Calls

- [`cmd_list_print`](/en/tmux/3.7c/reference/c-function-cmd_list_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1274)
- [`mode_tree_get_current_name`](/en/tmux/3.7c/reference/c-function-mode_tree_get_current_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1269)
- [`status_prompt_set`](/en/tmux/3.7c/reference/c-function-status_prompt_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1283)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1273)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1276)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1279)

## Other function references

- [`key_string_lookup_key`](/en/tmux/3.7c/reference/c-function-key_string_lookup_key/) (function)
- [`window_customize_free_item_callback`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_free_item_callback/) (function)
- [`window_customize_get_key`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_get_key/) (function)
- [`window_customize_set_command_callback`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_set_command_callback/) (function)
- [`window_customize_set_note_callback`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_set_note_callback/) (function)

## Referenced declarations

- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`key_binding.cmdlist`](/en/tmux/3.7c/reference/c-struct-key_binding-cmdlist/) (attribute)
- [`window_customize_itemdata.data`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-data/) (attribute)
- [`window_customize_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata-data/) (attribute)
- [`key_binding.flags`](/en/tmux/3.7c/reference/c-struct-key_binding-flags/) (attribute)
- [`key_binding.key`](/en/tmux/3.7c/reference/c-struct-key_binding-key/) (attribute)
- [`window_customize_itemdata.key`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-key/) (attribute)
- [`KEY_BINDING_REPEAT`](/en/tmux/3.7c/reference/c-define-tmux-h-key_binding_repeat/) (constant)
- [`key_binding.note`](/en/tmux/3.7c/reference/c-struct-key_binding-note/) (attribute)
- [`PROMPT_NOFORMAT`](/en/tmux/3.7c/reference/c-define-tmux-h-prompt_noformat/) (constant)
- [`PROMPT_TYPE_COMMAND`](/en/tmux/3.7c/reference/c-enum-prompt_type-prompt_type_command/) (constant)
- [`window_customize_modedata.references`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata-references/) (attribute)
- [`window_customize_itemdata.scope`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-scope/) (attribute)
- [`window_customize_itemdata.table`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-table/) (attribute)
- [`window_customize_itemdata`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata/) (struct)
- [`window_customize_modedata`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata/) (struct)
