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

Issue 709242 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

KeyboardEvent.code value in incorrect under Linux

Reported by cameron....@gmail.com, Apr 6 2017

Issue description

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

Steps to reproduce the problem:
1. Open https://jsfiddle.net/v1gz5c5m/1/
2. Press PageUp
3. Chromium sends code: Lang4, keyCode: 33, key: PageUp
4. Repeat with UpArrow, DownArrow, RightArrow, LeftArrow, Insert, Delete, Home, End, and PgDn for other incorrect results.

What is the expected behavior?
Expected result is that code is conceptually consistent with the value of key.

What went wrong?
Chromium returns junk values for keys in linux that make little sense. 

Did this work before? N/A 

Chrome version: 57.0.2987.133  Channel: stable
OS Version: Ubuntu 16.04
Flash Version: Shockwave Flash 25.0 r0

I ran into this because VS Code uses chromium and this defect broke the editor. https://github.com/Microsoft/vscode/issues/24107
 
Labels: Needs-Triage-M57
Other users experiencing the issue are also using RDP to connect to their linux system, so that is probably related. 
I am getting the same incorrect behaviour as OP but I am accessing the linux system using "VcXsrv X Server" (v1.18.3.0) and not RDP.
Cc: krajshree@chromium.org
Labels: Needs-Feedback
Unable to reproduce the issue on Ubuntu 16.04 using chrome reported version #57.0.2987.133 and latest beta #58.0.3029.68.

Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened https://jsfiddle.net/v1gz5c5m/1/
2. Pressed PageUp
3. Chrome sent code: PageUp, keyCode: 33, key: PageUp as expected.

cameron.ackerman@ - Could you please check this issue using latest beta #58.0.3029.68 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Thanks...!!
709242.ogv
2.0 MB View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Apr 17 2018

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment