IME enhancement stops autocomplete search event in Android when typing an English word

Created on 6 December 2017, almost 7 years ago
Updated 18 May 2023, over 1 year ago

Problem/Motivation

From 8.2.x there is an enhancement to improve IME experience in autocomplete. This has been implemented in #2823589: Improve IME handling on Autocomplete .
Basically, when a user starts to type a foreign language character by using English letter, the autocomplete will not trigger a search event until the foreign language character is typed completely.

This is a nice feature to have, however it causes an issue in the Chrome browser on Android phone. In my case, I observed issues on both Samsung mobile and tablet. On those devices, even I try to type English instead of another foreign language character, the search event is not triggered until a full English word is typed and a space key is pressed. After troubleshooting, it turns out that word suggestion is provided on those devices, and when I start to type an English word, it also triggers 'compositionstart' and 'compositionend' events.

== Update ==

I have tested on

  • two Adroid versions including 6.01 and 7.1
  • two mobile brands
  • two browsers including Chrome and Adroid default browser

Proposed resolution

I am not sure if that is really a Drupal bug. But it would be nice to have an option to turn this on or off per site.

The current solution is to cancel two event listeners in the custom JavaScript file in module or theme level.

Remaining tasks

Start to discuss

Feature request
Status

Needs work

Version

10.1

Component
Javascript 

Last updated about 12 hours ago

Created by

🇦🇺Australia eric.chenchao

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024