# key_string_lookup_string

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-string.c#L243
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-key_string_lookup_string/

```c
key_code key_string_lookup_string(const char *string)
```

## Parameters

- `string` (`const char *`)

## Called by

- [`cmd_bind_key_exec`](/en/tmux/3.7c/reference/c-function-cmd-bind-key-c-cmd_bind_key_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L65)
- [`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#L341)
- [`cmd_list_keys_exec`](/en/tmux/3.7c/reference/c-function-cmd-list-keys-c-cmd_list_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-keys.c#L183)
- [`cmd_send_keys_inject_string`](/en/tmux/3.7c/reference/c-function-cmd-send-keys-c-cmd_send_keys_inject_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-send-keys.c#L126)
- [`cmd_unbind_key_exec`](/en/tmux/3.7c/reference/c-function-cmd-unbind-key-c-cmd_unbind_key_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-unbind-key.c#L82)
- [`options_from_string`](/en/tmux/3.7c/reference/c-function-options_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1146)
- [`window_buffer_get_key`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L318)
- [`window_client_get_key`](/en/tmux/3.7c/reference/c-function-window-client-c-window_client_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L229)
- [`window_tree_get_key`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L813)

## Calls

- [`key_string_get_modifiers`](/en/tmux/3.7c/reference/c-function-key-string-c-key_string_get_modifiers/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-string.c#L291)
- [`key_string_search_table`](/en/tmux/3.7c/reference/c-function-key-string-c-key_string_search_table/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-string.c#L315)
- [`utf8_append`](/en/tmux/3.7c/reference/c-function-utf8_append/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-string.c#L306)
- [`utf8_from_data`](/en/tmux/3.7c/reference/c-function-utf8_from_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-string.c#L309)
- [`utf8_fromcstr`](/en/tmux/3.7c/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-string.c#L270)

## Other function references

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

## Referenced declarations

- [`key_code`](/en/tmux/3.7c/reference/c-typedef-key_code/) (typealias)
- [`KEYC_ANY`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_any/) (constant)
- [`KEYC_CTRL`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_ctrl/) (constant)
- [`KEYC_IMPLIED_META`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_implied_meta/) (constant)
- [`KEYC_META`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_meta/) (constant)
- [`KEYC_NONE`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_none/) (constant)
- [`KEYC_UNKNOWN`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_unknown/) (constant)
- [`utf8_data.size`](/en/tmux/3.7c/reference/c-struct-utf8_data-size/) (attribute)
- [`UTF8_DONE`](/en/tmux/3.7c/reference/c-enum-utf8_state-utf8_done/) (constant)
- [`UTF8_MORE`](/en/tmux/3.7c/reference/c-enum-utf8_state-utf8_more/) (constant)
