# popup_key_cb

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L215
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-popup-c-popup_key_cb/

```c
static int popup_key_cb(struct client *c, struct key_event *event)
```

## Parameters

- `c` (`struct client *`)
- `event` (`struct key_event *`)

## Calls

- [`input_key`](/en/tmux/3.2a/reference/c-function-input_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L265)
- [`input_key_get_mouse`](/en/tmux/3.2a/reference/c-function-input_key_get_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L259)
- [`popup_handle_drag`](/en/tmux/3.2a/reference/c-function-popup-c-popup_handle_drag/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L224)

## Other function references

- [`job_get_event`](/en/tmux/3.2a/reference/c-function-job_get_event/) (function)

## Referenced by

- [`popup_display`](/en/tmux/3.2a/reference/c-function-popup_display/) (function)

## Referenced declarations

- [`mouse_event.b`](/en/tmux/3.2a/reference/c-struct-mouse_event-b/) (attribute)
- [`popup_data.c`](/en/tmux/3.2a/reference/c-struct-popup_data-c/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`popup_data.dragging`](/en/tmux/3.2a/reference/c-struct-popup_data-dragging/) (attribute)
- [`popup_data.dx`](/en/tmux/3.2a/reference/c-struct-popup_data-dx/) (attribute)
- [`popup_data.dy`](/en/tmux/3.2a/reference/c-struct-popup_data-dy/) (attribute)
- [`popup_data.flags`](/en/tmux/3.2a/reference/c-struct-popup_data-flags/) (attribute)
- [`popup_data.job`](/en/tmux/3.2a/reference/c-struct-popup_data-job/) (attribute)
- [`key_event.key`](/en/tmux/3.2a/reference/c-struct-key_event-key/) (attribute)
- [`key_event`](/en/tmux/3.2a/reference/c-struct-key_event/) (struct)
- [`KEYC_IS_MOUSE`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_is_mouse/) (constant)
- [`mouse_event.lb`](/en/tmux/3.2a/reference/c-struct-mouse_event-lb/) (attribute)
- [`popup_data.lb`](/en/tmux/3.2a/reference/c-struct-popup_data-lb/) (attribute)
- [`mouse_event.lx`](/en/tmux/3.2a/reference/c-struct-mouse_event-lx/) (attribute)
- [`popup_data.lx`](/en/tmux/3.2a/reference/c-struct-popup_data-lx/) (attribute)
- [`mouse_event.ly`](/en/tmux/3.2a/reference/c-struct-mouse_event-ly/) (attribute)
- [`popup_data.ly`](/en/tmux/3.2a/reference/c-struct-popup_data-ly/) (attribute)
- [`MOUSE_BUTTONS`](/en/tmux/3.2a/reference/c-define-tmux-h-mouse_buttons/) (constant)
- [`MOUSE_DRAG`](/en/tmux/3.2a/reference/c-define-tmux-h-mouse_drag/) (constant)
- [`MOUSE_MASK_META`](/en/tmux/3.2a/reference/c-define-tmux-h-mouse_mask_meta/) (constant)
- [`client.overlay_data`](/en/tmux/3.2a/reference/c-struct-client-overlay_data/) (attribute)
- [`POPUP_CLOSEEXIT`](/en/tmux/3.2a/reference/c-define-tmux-h-popup_closeexit/) (constant)
- [`POPUP_CLOSEEXITZERO`](/en/tmux/3.2a/reference/c-define-tmux-h-popup_closeexitzero/) (constant)
- [`popup_data.px`](/en/tmux/3.2a/reference/c-struct-popup_data-px/) (attribute)
- [`popup_data.py`](/en/tmux/3.2a/reference/c-struct-popup_data-py/) (attribute)
- [`popup_data.s`](/en/tmux/3.2a/reference/c-struct-popup_data-s/) (attribute)
- [`popup_data.sx`](/en/tmux/3.2a/reference/c-struct-popup_data-sx/) (attribute)
- [`popup_data.sy`](/en/tmux/3.2a/reference/c-struct-popup_data-sy/) (attribute)
- [`mouse_event.x`](/en/tmux/3.2a/reference/c-struct-mouse_event-x/) (attribute)
- [`mouse_event.y`](/en/tmux/3.2a/reference/c-struct-mouse_event-y/) (attribute)
