# window_client_key

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

```c
static void window_client_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_client_menu`](/en/tmux/3.7c/reference/c-function-window-client-c-window_client_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L212)

## Calls

- [`mode_tree_build`](/en/tmux/3.7c/reference/c-function-mode_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L374)
- [`mode_tree_draw`](/en/tmux/3.7c/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L391)
- [`mode_tree_each_tagged`](/en/tmux/3.7c/reference/c-function-mode_tree_each_tagged/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L379)
- [`mode_tree_get_current`](/en/tmux/3.7c/reference/c-function-mode_tree_get_current/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L372)
- [`mode_tree_key`](/en/tmux/3.7c/reference/c-function-mode_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L367)
- [`mode_tree_run_command`](/en/tmux/3.7c/reference/c-function-mode_tree_run_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L384)
- [`window_client_do_detach`](/en/tmux/3.7c/reference/c-function-window-client-c-window_client_do_detach/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L373)
- [`window_pane_reset_mode`](/en/tmux/3.7c/reference/c-function-window_pane_reset_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L389)

## Other function references

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

## Referenced by

- [`window_client_mode`](/en/tmux/3.7c/reference/c-variable-window_client_mode/) (attribute)

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`window_client_itemdata.c`](/en/tmux/3.7c/reference/c-struct-window_client_itemdata-c/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`window_client_modedata.command`](/en/tmux/3.7c/reference/c-struct-window_client_modedata-command/) (attribute)
- [`window_client_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_client_modedata-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`key_code`](/en/tmux/3.7c/reference/c-typedef-key_code/) (typealias)
- [`mouse_event`](/en/tmux/3.7c/reference/c-struct-mouse_event/) (struct)
- [`PANE_REDRAW`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
- [`client.ttyname`](/en/tmux/3.7c/reference/c-struct-client-ttyname/) (attribute)
- [`window_mode_entry`](/en/tmux/3.7c/reference/c-struct-window_mode_entry/) (struct)
- [`winlink`](/en/tmux/3.7c/reference/c-struct-winlink/) (struct)
- [`window_mode_entry.wp`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-wp/) (attribute)
