keypress event not fired with chinese keyboard
Reported by
rishi.id...@gmail.com,
May 11 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36 Steps to reproduce the problem: 1. Run the attached onkeypress.html 2. Change the keyboard input to chinese 3. Change focus to input element 4. press any key on keyboard which has a printable character on it. 5. Nothing will be logged in console What is the expected behavior? Whenever, a key is pressed in input, event.key should be logged in console. What went wrong? keypress event is not getting fired for chinese keyboard. Did this work before? N/A Does this work in other browsers? No Chrome version: 58.0.3029.96 Channel: n/a OS Version: 10.0 Flash Version: Shockwave Flash 25.0 r0 I didn't encounter this problem in any other languages like Deutsche, Italian, Hindi
,
May 12 2017
,
May 12 2017
Tested the issue on Windows 10 & 7 using chrome M58 #58.0.3029.110 and M60 #60.0.3097.0 and issue is reproduced. Issue is seen from M45 and is a non-regression issue . Marking it as untraiged for further inputs on this. Thanks!
,
May 15 2017
keypress is only generated for legacy interop. Since it doesn't express all multiple character based languages you should use the input event, change event or composition events. See: https://developer.mozilla.org/en-US/docs/Web/Events/compositionupdate https://developer.mozilla.org/en-US/docs/Web/Events/input https://developer.mozilla.org/en-US/docs/Web/Events/change
,
May 15 2017
Note if you do want to get the raw key press events. You are able to use keydown, keyup (just not keypress). |
||||
►
Sign in to add a comment |
||||
Comment 1 by tkent@chromium.org
, May 12 2017