# input_key_extended

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

```c
static int input_key_extended(struct bufferevent *bev, key_code key)
```

## Parameters

- `bev` (`struct bufferevent *`)
- `key` (`key_code`)

## Called by

- [`input_key`](/en/tmux/latest/reference/c-function-input_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L696)

## Calls

- [`input_key_write`](/en/tmux/latest/reference/c-function-input-keys-c-input_key_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L472)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L467)
- [`utf8_towc`](/en/tmux/latest/reference/c-function-utf8_towc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L460)
- [`xsnprintf`](/en/tmux/latest/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L468)

## Other function references

- [`utf8_to_data`](/en/tmux/latest/reference/c-function-utf8_to_data/) (function)

## Referenced declarations

- [`global_options`](/en/tmux/latest/reference/c-variable-global_options/) (attribute)
- [`key_code`](/en/tmux/latest/reference/c-typedef-key_code/) (typealias)
- [`KEYC_CTRL`](/en/tmux/latest/reference/c-define-tmux-h-keyc_ctrl/) (constant)
- [`KEYC_IS_UNICODE`](/en/tmux/latest/reference/c-define-tmux-h-keyc_is_unicode/) (constant)
- [`KEYC_MASK_KEY`](/en/tmux/latest/reference/c-define-tmux-h-keyc_mask_key/) (constant)
- [`KEYC_MASK_MODIFIERS`](/en/tmux/latest/reference/c-define-tmux-h-keyc_mask_modifiers/) (constant)
- [`KEYC_META`](/en/tmux/latest/reference/c-define-tmux-h-keyc_meta/) (constant)
- [`KEYC_SHIFT`](/en/tmux/latest/reference/c-define-tmux-h-keyc_shift/) (constant)
- [`UTF8_DONE`](/en/tmux/latest/reference/c-enum-utf8_state-utf8_done/) (constant)
