# window_customize_key

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

```c
static void window_customize_key(struct window_mode_entry *, struct client *, struct session *, struct winlink *, key_code, struct mouse_event *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `c` (`struct client *`)
- `s` (`struct session *`)
- `wl` (`struct winlink *`)
- `key` (`key_code`)
- `m` (`struct mouse_event *`)

## Called by

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

## Calls

- [`mode_tree_build`](/en/tmux/latest/reference/c-function-mode_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1454)
- [`mode_tree_count_tagged`](/en/tmux/latest/reference/c-function-mode_tree_count_tagged/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1485)
- [`mode_tree_draw`](/en/tmux/latest/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1537)
- [`mode_tree_get_current`](/en/tmux/latest/reference/c-function-mode_tree_get_current/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1438)
- [`mode_tree_key`](/en/tmux/latest/reference/c-function-mode_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1439)
- [`options_push_changes`](/en/tmux/latest/reference/c-function-options_push_changes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1452)
- [`status_prompt_set`](/en/tmux/latest/reference/c-function-status_prompt_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1477)
- [`window_customize_set_key`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_set_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1449)
- [`window_customize_set_option`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_set_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1451)
- [`window_pane_reset_mode`](/en/tmux/latest/reference/c-function-window_pane_reset_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1535)
- [`xasprintf`](/en/tmux/latest/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1474)

## Other function references

- [`window_customize_change_current_callback`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_change_current_callback/) (function)
- [`window_customize_change_tagged_callback`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_change_tagged_callback/) (function)
- [`window_customize_free_callback`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_free_callback/) (function)

## Referenced by

- [`window_customize_mode`](/en/tmux/latest/reference/c-variable-window_customize_mode/) (attribute)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`window_customize_modedata.change`](/en/tmux/latest/reference/c-struct-window_customize_modedata-change/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`window_customize_itemdata.data`](/en/tmux/latest/reference/c-struct-window_customize_itemdata-data/) (attribute)
- [`window_customize_modedata.data`](/en/tmux/latest/reference/c-struct-window_customize_modedata-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_pane.flags`](/en/tmux/latest/reference/c-struct-window_pane-flags/) (attribute)
- [`window_customize_modedata.hide_global`](/en/tmux/latest/reference/c-struct-window_customize_modedata-hide_global/) (attribute)
- [`window_customize_itemdata.idx`](/en/tmux/latest/reference/c-struct-window_customize_itemdata-idx/) (attribute)
- [`window_customize_itemdata.key`](/en/tmux/latest/reference/c-struct-window_customize_itemdata-key/) (attribute)
- [`key_code`](/en/tmux/latest/reference/c-typedef-key_code/) (typealias)
- [`mouse_event`](/en/tmux/latest/reference/c-struct-mouse_event/) (struct)
- [`window_customize_itemdata.name`](/en/tmux/latest/reference/c-struct-window_customize_itemdata-name/) (attribute)
- [`PANE_REDRAW`](/en/tmux/latest/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`window_customize_modedata.prompt_flags`](/en/tmux/latest/reference/c-struct-window_customize_modedata-prompt_flags/) (attribute)
- [`PROMPT_NOFORMAT`](/en/tmux/latest/reference/c-define-tmux-h-prompt_noformat/) (constant)
- [`PROMPT_SINGLE`](/en/tmux/latest/reference/c-define-tmux-h-prompt_single/) (constant)
- [`PROMPT_TYPE_COMMAND`](/en/tmux/latest/reference/c-enum-prompt_type-prompt_type_command/) (constant)
- [`window_customize_modedata.references`](/en/tmux/latest/reference/c-struct-window_customize_modedata-references/) (attribute)
- [`window_customize_itemdata.scope`](/en/tmux/latest/reference/c-struct-window_customize_itemdata-scope/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
- [`WINDOW_CUSTOMIZE_KEY`](/en/tmux/latest/reference/c-enum-window_customize_scope-window_customize_key/) (constant)
- [`WINDOW_CUSTOMIZE_RESET`](/en/tmux/latest/reference/c-enum-window_customize_change-window_customize_reset/) (constant)
- [`WINDOW_CUSTOMIZE_UNSET`](/en/tmux/latest/reference/c-enum-window_customize_change-window_customize_unset/) (constant)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
- [`winlink`](/en/tmux/latest/reference/c-struct-winlink/) (struct)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
