From c45e5609c008f4add129b604796e6543255e7aa3 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 27 Aug 2024 15:58:03 +0100 Subject: [PATCH] spacial case for tabs in text area --- src/textual/widgets/_text_area.py | 2 ++ 1 file changed, 2 insertions(+) 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: