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

Issue 721317 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

keypress event not fired with chinese keyboard

Reported by rishi.id...@gmail.com, May 11 2017

Issue description

UserAgent: 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
 
onkeypress.html
205 bytes View Download

Comment 1 by tkent@chromium.org, May 12 2017

Components: -Blink>HTML Blink>Editing>IME Blink>Input
Labels: Needs-Triage-M58

Comment 3 by hdodda@chromium.org, May 12 2017

Cc: hdodda@chromium.org
Labels: -Needs-Triage-M58 M-60
Status: Untriaged (was: Unconfirmed)
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!
Status: WontFix (was: Untriaged)
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
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