mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Let pilot press _.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user