mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove the keystrokes from the dictionary example in events guide
As well as not being necessary for the example, it also had the problem of not actually having the input in focus (there was no press of 'tab' to kick things off) and so the other keys didn't go into the `Input` as they were supposed to.
This commit is contained in:
@@ -183,7 +183,7 @@ Let's look at an example which looks up word definitions from an [api](https://d
|
|||||||
|
|
||||||
=== "Output"
|
=== "Output"
|
||||||
|
|
||||||
```{.textual path="docs/examples/events/dictionary.py" press="t,e,x,t,_,_,_,_,_,_,_,_,_,_,_"}
|
```{.textual path="docs/examples/events/dictionary.py"}
|
||||||
```
|
```
|
||||||
|
|
||||||
Note the highlighted line in the above code which calls `asyncio.create_task` to run a coroutine in the background. Without this you would find typing in to the text box to be unresponsive.
|
Note the highlighted line in the above code which calls `asyncio.create_task` to run a coroutine in the background. Without this you would find typing in to the text box to be unresponsive.
|
||||||
|
|||||||
Reference in New Issue
Block a user