# plan.ops.panes.SendKeys

- **Module:** plan.ops.panes
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/plan/ops/panes.rs#L231
- **Page:** https://libtmux.org/en/rs/latest/reference/plan-ops-panes-sendkeys/

Send text or named keys to a pane.

[`SendKeys::text`] and [`SendKeys::keys`] cannot both be set: tmux
resolves every `send-keys` argument against its key table unless `-l`
literalizes it, and `-l` covers every argument of the `send-keys` it sits
on. So literal text and named keys cannot share one `send-keys`, though
two of them still share one tmux invocation under a folding planner.
[`crate::plan::Plan::validate`] rejects a `SendKeys` that carries both,
before a plan runs.

## Members

- `new` (method): Address this pane.
- `text` (method): Send this literal text.
- `keys` (method): Send named keys such as `C-c` or `Escape`.
- `enter` (method): Follow the text with Enter.
