diff --git a/src/textual/widgets/_text_area.py b/src/textual/widgets/_text_area.py index c80acbeeca..1b11e21331 100644 --- a/src/textual/widgets/_text_area.py +++ b/src/textual/widgets/_text_area.py @@ -559,6 +559,8 @@ def check_consume_key(self, key: str) -> bool: """ if self.read_only: return False + if self.tab_behavior == "indent" and key == "tab": + return True return len(key) == 1 and key.isprintable() def _build_highlight_map(self) -> None: