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

Issue 613156 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

KeyboardEvent.key value of alphanumeric key of Japanese keyboard on Linux is "Eisu"

Reported by dtoybo...@gmail.com, May 19 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2739.0 Safari/537.36

Example URL:
https://dvcs.w3.org/hg/d4e/raw-file/tip/key-event-test.html

Steps to reproduce the problem:
1. Load https://dvcs.w3.org/hg/d4e/raw-file/tip/key-event-test.html
2. Press 英数 key which is CaplLock key without Shift

What is the expected behavior?
The KeyboardEvent.key value should be "Alphanumeric", not "Eisu".

What went wrong?
"Eisu" is a special key on Mac Japanese keyboard. "Alphanumeric" is a good key value for Japanese PC keyboard's 英数 key's usual keysym (on my environment, the keysym value is Eisu_toggle).

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 52.0.2739.0  Channel: canary
OS Version: 
Flash Version: Shockwave Flash 22.0 r0

Both keys on Japanese Mac keyboard and Japanese PC keyboard has a key labeled "英数" (called "Eisu-key"). However, they are really different. Mac's 英数 key is to switch keyboard layout to ASCII capable keyboard layout. PC's 英数 key is to enter alphanumeric character input mode of IME. And Mac's key is "Lang2" key but PC's key is "CapsLock" key physically.
 
Cc: dtapu...@chromium.org w...@chromium.org
Components: -Blink Blink>Input
Owner: chongz@chromium.org
Status: Assigned (was: Unconfirmed)
Labels: Hotlist-Input-Dev
Project Member

Comment 3 by bugdroid1@chromium.org, Feb 16 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2d737b644509dd214ab18d8435956ec43a43f4d6

commit 2d737b644509dd214ab18d8435956ec43a43f4d6
Author: chongz <chongz@chromium.org>
Date: Thu Feb 16 15:37:48 2017

[Linux DomKey] Map |Eisu_Shift| and |Eisu_toggle| to "Alphanumeric"

This CL maps keysym |Eisu_Shift| and |Eisu_toggle| to DomKey "Alphanumeric"
as they are used to enter alphanumeric character input mode of IME.

Note:
We shouldn't use DomKey "Eisu" as it's a special key on Mac and has different
functionality. See bug for more details.

BUG= 613156 

Review-Url: https://codereview.chromium.org/2626713002
Cr-Commit-Position: refs/heads/master@{#450973}

[modify] https://crrev.com/2d737b644509dd214ab18d8435956ec43a43f4d6/ui/events/keycodes/keyboard_code_conversion_xkb.cc

Comment 4 by chongz@chromium.org, Feb 16 2017

Labels: M-58
Status: Fixed (was: Assigned)

Sign in to add a comment