diff --git a/src/textual/widgets/_text_area.py b/src/textual/widgets/_text_area.py index a304eb609c..527ff31c67 100644 --- a/src/textual/widgets/_text_area.py +++ b/src/textual/widgets/_text_area.py @@ -2223,6 +2223,8 @@ def action_copy(self) -> None: def action_paste(self) -> None: """Paste from local clipboard.""" + if self.read_only: + return clipboard = self.app._clipboard start, end = self.selection self._replace_via_keyboard(clipboard, start, end)