Let pilot press _.

This commit is contained in:
Rodrigo Girão Serrão
2023-03-13 14:13:02 +00:00
parent 103c27b942
commit eafa12c9bf
2 changed files with 2 additions and 3 deletions

View File

@@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Changed the `Checkbox` character due to issues with Windows Terminal and Windows 10 https://github.com/Textualize/textual/issues/1934
- Changed the `RadioButton` character due to issues with Windows Terminal and Windows 10 and 11 https://github.com/Textualize/textual/issues/1934
- Changed the `Markdown` initial bullet character due to issues with Windows Terminal and Windows 10 and 11 https://github.com/Textualize/textual/issues/1982
- The underscore `_` is no longer a special alias for the method `pilot.press`
### Added

View File

@@ -862,9 +862,7 @@ class App(Generic[ReturnType], DOMNode):
assert driver is not None
await wait_for_idle(0)
for key in keys:
if key == "_":
continue
elif key.startswith("wait:"):
if key.startswith("wait:"):
_, wait_ms = key.split(":")
print(f"(pause {wait_ms}ms)")
await asyncio.sleep(float(wait_ms) / 1000)