2020-10-10 09:34:35 +03:00
|
|
|
# `window:perform_action(key_assignment, pane)`
|
|
|
|
|
2020-11-01 01:51:08 +03:00
|
|
|
*Since: 20201031-154415-9614e117*
|
2020-10-10 09:34:35 +03:00
|
|
|
|
|
|
|
Performs a key assignment against the `window` and `pane`.
|
|
|
|
There are a number of actions that can be performed against a `pane` in
|
|
|
|
a `window` when configured via the `keys` and `mouse` configuration options.
|
|
|
|
|
|
|
|
This method allows your lua script to trigger those actions for itself.
|
|
|
|
|
|
|
|
The first parameter is a key assignment such as that returned by [`wezterm.action`](../wezterm/action.md).
|
|
|
|
|
|
|
|
The second parameter is a `pane` object passed to your event callback.
|
|
|
|
|
|
|
|
For an example of this method in action, see [`wezterm.on Custom Events`](../wezterm/on.md#custom-events).
|
|
|
|
|