# window_customize_build_keys

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

```c
static void window_customize_build_keys(struct window_customize_modedata *data, struct key_table *kt, struct format_tree *ft, const char *filter, struct cmd_find_state *fs, u_int number)
```

## Parameters

- `data` (`struct window_customize_modedata *`)
- `kt` (`struct key_table *`)
- `ft` (`struct format_tree *`)
- `filter` (`const char *`)
- `fs` (`struct cmd_find_state *`)
- `number` (`u_int`)

## Called by

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

## 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#L492)
- [`format_add`](/en/tmux/3.7c/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L463)
- [`format_create_from_state`](/en/tmux/3.7c/reference/c-function-format_create_from_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L462)
- [`format_expand`](/en/tmux/3.7c/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L472)
- [`format_free`](/en/tmux/3.7c/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L523)
- [`format_true`](/en/tmux/3.7c/reference/c-function-format_true/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L473)
- [`key_bindings_first`](/en/tmux/3.7c/reference/c-function-key_bindings_first/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L466)
- [`key_bindings_next`](/en/tmux/3.7c/reference/c-function-key_bindings_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L520)
- [`mode_tree_add`](/en/tmux/3.7c/reference/c-function-mode_tree_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L458)
- [`mode_tree_draw_as_parent`](/en/tmux/3.7c/reference/c-function-mode_tree_draw_as_parent/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L497)
- [`mode_tree_no_tag`](/en/tmux/3.7c/reference/c-function-mode_tree_no_tag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L459)
- [`window_customize_add_item`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_add_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L480)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L457)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L482)

## Other function references

- [`key_string_lookup_key`](/en/tmux/3.7c/reference/c-function-key_string_lookup_key/) (function)

## Referenced declarations

- [`cmd_find_state`](/en/tmux/3.7c/reference/c-struct-cmd_find_state/) (struct)
- [`window_customize_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata-data/) (attribute)
- [`window_customize_modedata.format`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata-format/) (attribute)
- [`format_tree`](/en/tmux/3.7c/reference/c-struct-format_tree/) (struct)
- [`window_customize_itemdata.idx`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-idx/) (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_table`](/en/tmux/3.7c/reference/c-struct-key_table/) (struct)
- [`key_table.name`](/en/tmux/3.7c/reference/c-struct-key_table-name/) (attribute)
- [`window_customize_itemdata.name`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-name/) (attribute)
- [`key_binding.note`](/en/tmux/3.7c/reference/c-struct-key_binding-note/) (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_KEY`](/en/tmux/3.7c/reference/c-enum-window_customize_scope-window_customize_key/) (constant)
- [`window_customize_modedata`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata/) (struct)
