# key-table

Source: https://libtmux.org/en/tmux/latest/catalog/options/key-table/

> Set the default key table to key-table instead of root.

option tmux3.7c

Set the default key table to key-table instead of root.

* Scope

  session

* Type

  Text

* Default

  `root`

* Set

  [`set-option`](https://libtmux.org/en/tmux/latest/manual/set-option/) `key-table value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/latest/manual/show-options/) `key-table`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/options/key-table/#description)

Set the default key table to `key-table` instead of *root*.

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/options/key-table/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/key-table/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/key-table/) : present

## Source[#](https://libtmux.org/en/tmux/latest/catalog/options/key-table/#source)

* Defined in

  [`options-table.c:701`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L701)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/latest/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#options-key-table)

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/options/key-table/#used-by)

Library documentation that names this option.

* Rust

  [`options.generated.KEY_TABLE`](https://libtmux.org/en/rs/latest/reference/options-generated-key_table/)

* Go

  [`tmux.GlobalSessionScope.SetKeyTable`](https://libtmux.org/en/go/latest/reference/tmux-globalsessionscope-setkeytable/), [`tmux.Session.SetKeyTable`](https://libtmux.org/en/go/latest/reference/tmux-session-setkeytable/), [`tmux.SessionOptionValues.KeyTable`](https://libtmux.org/en/go/latest/reference/tmux-sessionoptionvalues-keytable/)
