# cmdq_get_event

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L187
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmdq_get_event/

```c
struct key_event * cmdq_get_event(struct cmdq_item *item)
```

## Parameters

- `item` (`struct cmdq_item *`)

## Called by

- [`cmd_copy_mode_exec`](/en/tmux/3.7c/reference/c-function-cmd-copy-mode-c-cmd_copy_mode_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L60)
- [`cmd_display_menu_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L288)
- [`cmd_display_menu_get_pos`](/en/tmux/3.7c/reference/c-function-cmd-display-menu-c-cmd_display_menu_get_pos/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L100)
- [`cmd_resize_pane_mouse_update`](/en/tmux/3.7c/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_mouse_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-pane.c#L149)
- [`cmd_send_keys_exec`](/en/tmux/3.7c/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-send-keys.c#L162)
- [`format_create_add_item`](/en/tmux/3.7c/reference/c-function-format-c-format_create_add_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3810)
- [`menu_key_cb`](/en/tmux/3.7c/reference/c-function-menu_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L498)

## Referenced by

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

## Referenced declarations

- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`cmdq_state.event`](/en/tmux/3.7c/reference/c-struct-cmdq_state-event/) (attribute)
- [`key_event`](/en/tmux/3.7c/reference/c-struct-key_event/) (struct)
- [`cmdq_item.state`](/en/tmux/3.7c/reference/c-struct-cmdq_item-state/) (attribute)
