# KEYC_IS_PASTE

- **Language:** C
- **Kind:** constant
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.h#L215
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-define-tmux-h-keyc_is_paste/

```c
#define KEYC_IS_PASTE(key) (((key) & KEYC_MASK_TYPE) == KEYC_SHIFT_TYPE(KEYC_TYPE_FUNCTION) && \
 (((key) & KEYC_MASK_KEY) == KEYC_PASTE_START || \
 ((key) & KEYC_MASK_KEY) == KEYC_PASTE_END))
```

## Referenced by

- [`input_key`](/en/tmux/latest/reference/c-function-input_key/) (function)
- [`popup_key_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_key_cb/) (function)
- [`server_client_key_callback`](/en/tmux/latest/reference/c-function-server-client-c-server_client_key_callback/) (function)
- [`window_pane_paste`](/en/tmux/latest/reference/c-function-window_pane_paste/) (function)

## Referenced declarations

- [`KEYC_MASK_KEY`](/en/tmux/latest/reference/c-define-tmux-h-keyc_mask_key/) (constant)
- [`KEYC_MASK_TYPE`](/en/tmux/latest/reference/c-define-tmux-h-keyc_mask_type/) (constant)
- [`KEYC_PASTE_END`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_paste_end/) (constant)
- [`KEYC_PASTE_START`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_paste_start/) (constant)
- [`KEYC_SHIFT_TYPE`](/en/tmux/latest/reference/c-define-tmux-h-keyc_shift_type/) (constant)
- [`KEYC_TYPE_FUNCTION`](/en/tmux/latest/reference/c-enum-key_code_type-keyc_type_function/) (constant)
