Skip to content

Commit 3588c9c

Browse files
committed
docstring
1 parent 5470245 commit 3588c9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/textual/dom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,8 @@ def workers(self) -> WorkerManager:
479479
def trap_focus(self, trap_focus: bool = True) -> None:
480480
"""Trap the focus.
481481
482-
When applied to a container, pressing tab to change focus will be restricted to that container.
482+
When applied to a container, pressing tab to change focus will be limited to the container's
483+
children if one of the children currently has focus.
483484
484485
Args:
485486
trap_focus: `True` to trap focus. `False` to restore default behavior.

0 commit comments

Comments
 (0)