Entering character with on-screen keyboard fails to trigger 'compositionend' event
Reported by
asheph...@datmedia.com.au,
Mar 5 2018
|
||||||
Issue descriptionUserAgent: 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/
,
Mar 8 2018
What Input Method do you have set for your keyboard? I don't see any composition events on my build of chrome OS.
,
Mar 9 2018
@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.
,
Mar 9 2018
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
,
Mar 21 2018
,
Mar 22 2018
What input language are you using? I don't see any composition events with the virtual keyboard and pressing 'a'
,
Mar 23 2018
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).
,
Mar 26 2018
,
Mar 27 2018
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.
,
Mar 27 2018
I'll correct you on the workaround: it's "autocorrect='off'", not "autocorrect='false'" |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by chrishtr@chromium.org
, Mar 6 2018