New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 818881 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Entering character with on-screen keyboard fails to trigger 'compositionend' event

Reported by asheph...@datmedia.com.au, Mar 5 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36
Platform: 10176.68.0 (Official Build) stable-channel nyan_kitty

Steps to reproduce the problem:
1. To reproduce this, you must observe the javascript events that are fired on an input control. On a Chrome OS device, navigate to this Keyboard Event Viewer utility: https://w3c.github.io/uievents/tools/key-event-viewer.html 
2. Set the focus onto an Input control
3. Using the Onscreen keyboard, press the letter 'a'

What is the expected behavior?
You would expect to see the following events:
1. keydown
2. compositionstart
3. beforeinput
4. compositionupdate
5. input
6. keyup
7. compositionend

What went wrong?
The final required event (compisitionend) did not trigger.

Did this work before? N/A 

Chrome version: 64.0.3282.144  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

this breaks angularjs applications.

See this plunker example for an application where entering text via the onscreen keyboard has no effect: 
http://embed.plnkr.co/bIwMp88BB8gNHFenayfz/
 
Components: -Blink Blink>Input
Components: UI>Input>Text>IME
Labels: Needs-Feedback
What Input Method do you have set for your keyboard? I don't see any composition events on my build of chrome OS.
@dtapu... 

I do not understand what you mean by "Input Method".

I am using an Acer Chromebase.

If I set the focus onto the textbox, the virtual keyboard appears, and entering a key via the virtual keyboard causes these events to fire.

If I attach a physical keyboard via USB, then there are no composition events. This only happens with the onscreen virtual keyboard.


Project Member

Comment 4 by sheriffbot@chromium.org, Mar 9 2018

Cc: dtapu...@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: UI>Input>VirtualKeyboard
What input language are you using? I don't see any composition events with the virtual keyboard and pressing 'a'
I also do not understand what you mean by "Input Language".

I've enclosed a video of the entire experience. You can see what's going on. (I accidentally pressed and release the caps-lock key in the video. This is irrelevant).


chrome-virtual-keyboard.mp4
1.8 MB View Download
Owner: shuchen@chromium.org
Status: Assigned (was: Unconfirmed)
Components: -Blink>Input
Status: WontFix (was: Assigned)
This is by design. Same behavior on Android with Android keyboard apps.
The composition text in the case in the video recording is "a" with the underline effect. "compositionend" event will appear after the underlined text is committed by, e.g. SPACE key.

In your application, if you don't want IME/VK to set composition text in your input field, please set the attribute "autocorrect=false" to the input element or content editable element.

I'll correct you on the workaround: it's "autocorrect='off'", not "autocorrect='false'"

Sign in to add a comment