# window_tree_get_key

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L791
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-tree-c-window_tree_get_key/

```c
static key_code window_tree_get_key(void *modedata, void *itemdata, u_int line)
```

## Parameters

- `modedata` (`void *`)
- `itemdata` (`void *`)
- `line` (`u_int`)

## Calls

- [`format_add`](/en/tmux/latest/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L810)
- [`format_defaults`](/en/tmux/latest/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L805)
- [`format_expand`](/en/tmux/latest/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L812)
- [`format_free`](/en/tmux/latest/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L815)
- [`key_string_lookup_string`](/en/tmux/latest/reference/c-function-key_string_lookup_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L813)
- [`window_tree_pull_item`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_pull_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L803)

## Other function references

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

## Referenced by

- [`window_tree_init`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_init/) (function)

## Referenced declarations

- [`window_tree_modedata.data`](/en/tmux/latest/reference/c-struct-window_tree_modedata-data/) (attribute)
- [`FORMAT_NONE`](/en/tmux/latest/reference/c-define-tmux-h-format_none/) (constant)
- [`key_code`](/en/tmux/latest/reference/c-typedef-key_code/) (typealias)
- [`window_tree_modedata.key_format`](/en/tmux/latest/reference/c-struct-window_tree_modedata-key_format/) (attribute)
- [`window_tree_itemdata.type`](/en/tmux/latest/reference/c-struct-window_tree_itemdata-type/) (attribute)
- [`WINDOW_TREE_SESSION`](/en/tmux/latest/reference/c-enum-window_tree_type-window_tree_session/) (constant)
- [`WINDOW_TREE_WINDOW`](/en/tmux/latest/reference/c-enum-window_tree_type-window_tree_window/) (constant)
