# window_pane_copy_key

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

```c
static void window_pane_copy_key(struct window_pane *wp, key_code key)
```

## Parameters

- `wp` (`struct window_pane *`)
- `key` (`key_code`)

## Called by

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

## 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#L1332)

## Other function references

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

## Referenced declarations

- [`window_pane.entry`](/en/tmux/3.7c/reference/c-struct-window_pane-entry/) (attribute)
- [`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)
- [`key_code`](/en/tmux/3.7c/reference/c-typedef-key_code/) (typealias)
- [`window_pane.modes`](/en/tmux/3.7c/reference/c-struct-window_pane-modes/) (attribute)
- [`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)
- [`window.panes`](/en/tmux/3.7c/reference/c-struct-window-panes/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
