diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c215abfe7..bfcf26d863 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Fixed NoWidget when mouse goes outside window https://github.com/Textualize/textual/pull/3790 +- Removed suprious print statements from press_keys https://github.com/Textualize/textual/issues/3785 ## [0.43.2] - 2023-11-29 diff --git a/src/textual/app.py b/src/textual/app.py index b76290336c..cce4ad45ec 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -1169,7 +1169,6 @@ async def _press_keys(self, keys: Iterable[str]) -> None: for key in keys: if key.startswith("wait:"): _, wait_ms = key.split(":") - print(f"(pause {wait_ms}ms)") await asyncio.sleep(float(wait_ms) / 1000) else: if len(key) == 1 and not key.isalnum(): @@ -1180,7 +1179,6 @@ async def _press_keys(self, keys: Iterable[str]) -> None: char = unicodedata.lookup(_get_unicode_name_from_key(original_key)) except KeyError: char = key if len(key) == 1 else None - print(f"press {key!r} (char={char!r})") key_event = events.Key(key, char) key_event._set_sender(app) driver.send_event(key_event)