Skip to content

Conversation

ClearlyClaire
Copy link
Contributor

Indeed, in the current behavior, if the user takes less than half a second between each keystroke, the language detection will only kick in half a second after they are done typing.

For quick typers who use ctrl+enter to send posts, this means they may not be notified of incorrect language.

This PR adds maxWait: 1500 so that the language detection kicks in regularly even if the user types fast.

@ClearlyClaire ClearlyClaire added the area/web interface Related to the Mastodon web interface label Jan 29, 2025
@ClearlyClaire ClearlyClaire requested a review from a team January 29, 2025 09:16
@Gargron Gargron enabled auto-merge January 29, 2025 09:18
@Gargron Gargron added this pull request to the merge queue Jan 29, 2025
Merged via the queue into main with commit 85668be Jan 29, 2025
29 checks passed
@Gargron Gargron deleted the fixes/language-detection-debounce branch January 29, 2025 09:36
vmstan pushed a commit to vmstan/mastodon that referenced this pull request Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/web interface Related to the Mastodon web interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants