# tui/focus-widget Set the calling panel's authoritative widget-focus slot to the widget with the given `:id`. The focused widget receives keyboard events exclusively. ## Syntax
[tui/focus-widget id]
## Parameters - `id` — string `:id` of a Focusable widget in the panel's tree ## Examples
# On entering an edit mode, focus the commit-msg input
[tui/focus-widget "commit-msg"]
## Returns `true`. ## See Also `tui/focused-widget-id`, `tui/cycle-focus`, `tui/clear-focus`