# input_key_pane

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L398
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-input_key_pane/

```c
int input_key_pane(struct window_pane *wp, key_code key, struct mouse_event *m)
```

## Parameters

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

## Called by

- [`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#L1332)
- [`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#L1376)

## Calls

- [`input_key`](/en/tmux/3.7c/reference/c-function-input_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L410)
- [`input_key_mouse`](/en/tmux/3.7c/reference/c-function-input-keys-c-input_key_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L407)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L401)
- [`log_get_level`](/en/tmux/3.7c/reference/c-function-log_get_level/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L400)

## Other function references

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

## Referenced declarations

- [`window_pane.event`](/en/tmux/3.7c/reference/c-struct-window_pane-event/) (attribute)
- [`window_pane.id`](/en/tmux/3.7c/reference/c-struct-window_pane-id/) (attribute)
- [`input_key_entry.key`](/en/tmux/3.7c/reference/c-struct-input_key_entry-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)
- [`mouse_event`](/en/tmux/3.7c/reference/c-struct-mouse_event/) (struct)
- [`window_pane.screen`](/en/tmux/3.7c/reference/c-struct-window_pane-screen/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`mouse_event.wp`](/en/tmux/3.7c/reference/c-struct-mouse_event-wp/) (attribute)
