# window_pane_key

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

```c
int window_pane_key(struct window_pane *wp, struct client *c, struct session *s, struct winlink *wl, key_code key, struct mouse_event *m)
```

## Parameters

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

## Called by

- [`cmd_send_keys_exec`](/en/tmux/3.7c/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-send-keys.c#L210)
- [`cmd_send_keys_inject_key`](/en/tmux/3.7c/reference/c-function-cmd-send-keys-c-cmd_send_keys_inject_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-send-keys.c#L89)
- [`server_client_key_callback`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_key_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1422)

## Calls

- [`input_key_pane`](/en/tmux/3.7c/reference/c-function-input_key_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1376)
- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1381)
- [`window_pane_copy_key`](/en/tmux/3.7c/reference/c-function-window-c-window_pane_copy_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1382)

## Referenced declarations

- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`window_pane.fd`](/en/tmux/3.7c/reference/c-struct-window_pane-fd/) (attribute)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`window_mode.key`](/en/tmux/3.7c/reference/c-struct-window_mode-key/) (attribute)
- [`key_code`](/en/tmux/3.7c/reference/c-typedef-key_code/) (typealias)
- [`KEYC_IS_MOUSE`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_is_mouse/) (constant)
- [`KEYC_MASK_FLAGS`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_mask_flags/) (constant)
- [`window_mode_entry.mode`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-mode/) (attribute)
- [`window_pane.modes`](/en/tmux/3.7c/reference/c-struct-window_pane-modes/) (attribute)
- [`mouse_event`](/en/tmux/3.7c/reference/c-struct-mouse_event/) (struct)
- [`window_pane.options`](/en/tmux/3.7c/reference/c-struct-window_pane-options/) (attribute)
- [`PANE_INPUTOFF`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_inputoff/) (constant)
- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (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)
