When using Translate's Text translation tab, selecting the "Start typing some text" text box gives it keyboard focus. This text box loses keyboard focus in the following scenario:
- https://translate.kagi.com/
- Select the source language text box
- Type a word or phrase that can be successfully translated into the target language
- Wait for the word or phrase to appear
- Delete all characters in the original source language text box, which should still have keyboard focus
- Wait for the translations to disappear
- Original source language text box loses keyboard focus and typing further text does not do anything without clicking the source language text box again
If you look at the attached video, I look up three different words (duck, chicken, dog) in succession. After looking up "duck" and deleting the characters, you can see how the bug manifests. I am typing more characters after completing step 7 of the steps above. After looking up "chicken" and deleting the text, I do something different and don't wait for the initial translation to disappear before looking up "dog". The bug does not manifest in this situation, and I am able to look up "dog" without clicking the text box again. After clearing "dog", I wait again and the bug manifests again.
Tested on Firefox and Edge on desktop and Edge and Safari on iOS
Thanks for looking at this!
The keyboard focus should not be removed from the source language text box. This is a poor experience for people who look up multiple successive words. The person may pause to think about the next word after clearing out the first request and as a result will need to select the source text box again before they can type