o
Other
•
fix
ai
Focus a prompt's first text field and submit it on Enter
Before
Watch on GitHub
After
Watch on GitHub
A prompt dialog focuses its first text field, and pressing Enter in a single-line field submits it.