[x] My pull request has a descriptive title (not a vague title like Update index.md)
We're interested in checking how the editor responds to keypresses, so I think it's safer to apply keypresses directly (rather than treating it like an input element).
I also simplified the logic a bit: computing the number of words seemed redundant when we know it's two.
Checklist:
Update index.md
)We're interested in checking how the editor responds to keypresses, so I think it's safer to apply keypresses directly (rather than treating it like an input element).
I also simplified the logic a bit: computing the number of words seemed redundant when we know it's two.