New issue
Advanced search Search tips

Issue 856147 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 1
Type: Bug-Regression



Sign in to add a comment

KeyboardEvent.altKey and KeyboardEvent.ctrlKey is not propagated properly when pressing AltGr (right alt)

Reported by zachary....@westwing.pl, Jun 25 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3464.2 Safari/537.36

Steps to reproduce the problem:
1. Open any website
2. Try to use a right alt (AltGr) plus any letter combination
3. KeyboardEvent.altKey is false

What is the expected behavior?
altKey and ctrlKey to be true when AltGr is pressed as AltGr is pretty much Ctrl+Alt on Windows

What went wrong?
altKey and ctrlKey are false when AltGr is pressed

Did this work before? Yes Can't find

Chrome version: 69.0.3469.4  Channel: canary
OS Version: Windows NT 10.0; WOW64
Flash Version: 

Side note: You can debug these on https://mrcoles.com/keys/ or https://css-tricks.com/snippets/javascript/javascript-keycodes/#article-header-id-0

Reproducible from stable to canary on Windows OS 10, on macOS it's fine.
 
Just reproduced this on Windows 7 as well.
Labels: Needs-Triage-M69

Comment 3 by kojii@chromium.org, Jun 26 2018

Cc: kojii@chromium.org
Components: -Blink Blink>Input
Labels: Needs-Feedback Needs-TestConfirmation
Thank you for reporting this issue to us.

Unfortunately, I cannot reproduce this. I tried:
1. Open https://mrcoles.com/keys/
2. Press the right Alt key and "a" or "t"

Result:
16:46:18 >	T	keyup	84	84	0	altKey
16:46:18 >	T	keydown	84	84	0	altKey
16:46:18 >		keydown	18	18	0	altKey
16:45:59 >		keyup	18	18	0	
16:45:59 >	A	keyup	65	65	0	altKey
16:45:59 >	A	keydown	65	65	0	altKey
16:45:59 >		keydown	18	18	0	altKey

Is the Windows 7 you tried a different hardware, or you switched the OS on the same hardware? What is the language of the keyboard you're using?
Oh forgot to mention it's Polish Programmers keyboard on windows 10 and windows 7. These two systems were on two different hardwares
Project Member

Comment 5 by sheriffbot@chromium.org, Jun 26 2018

Labels: -Needs-Feedback
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

Comment 6 by kojii@chromium.org, Jun 26 2018

Cc: -kojii@chromium.org
#4: thank you for the information.

I don't have Polish Programers keyboard around, passing to our test engineers and the experts.
Cc: susan.boorgula@chromium.org
Labels: -Pri-2 -Needs-TestConfirmation ReleaseBlock-Stable Triaged-ET RegressedIn-67 FoundIn-67 M-67 Target-67 FoundIn-69 FoundIn-68 hasbisect Target-69 Target-68 OS-Linux Pri-1
Owner: w...@chromium.org
Status: Assigned (was: Unconfirmed)
zachary.milonas@ Thanks for the issue.

Able to reproduce this issue on Windows 10 and Ubuntu 17.10 on the latest Canary 69.0.3474.0 and Stable 67.0.3396.99 by following the below steps.
Issue is not applicable to Mac OS.

1. Launched Chrome and navigated to https://css-tricks.com/snippets/javascript/javascript-keycodes/#article-header-id-0 site.
2. Clicked on the frame and hit 'Alt Gr and any letter' and can observe that the altKey and ctrlKey values are false.

Note: - In Windows, the altKey and ctrlKey values are displayed as false if the Keyboard is set with Polish (Programmers) keyboard or United States-International Keyboard.
- In Ubuntu 17.10, if the keyboard is set to English(US) and when hitting the 'Alt Gr and any letter key', the altkey value is displayed as True and ctrlKey value is displayed as False.
- if the keyboard is set to Polish(programmer Dvorak) and when hitting the 'Alt Gr and any letter key', altKey and ctrlKey values are displayed as false.
Attached are the screen casts for reference.

Bisect Information (on windows):
================================
Good Build: 67.0.3371.0
Bad Build:  67.0.3372.0

Unable to run the per-revision bisect script, as the builds are crashing. Hence below is the manual Changelog URL from omahaproxy.

https://chromium.googlesource.com/chromium/src/+log/67.0.3371.0..67.0.3372.0?pretty=fuller&n=10000

From the above Changelog, suspecting the below change:
Reviewed-on: https://chromium-review.googlesource.com/963790

wez@ Please check and confirm if this issue is related to your change, else help us in assigning to the right owner.

Adding 'ReleaseBlock-Stable' as this is a recent break. Please feel free to remove if this is not applicable.

Thanks..
856147-linux.webm
15.0 MB Download
856147-Good.png
137 KB View Download
856147-Bad.png
230 KB View Download

Comment 8 by w...@chromium.org, Jun 27 2018

Status: WontFix (was: Assigned)
This is working-as-intended, as per  issue 25503 ; we now report either AltGr or Ctrl+Alt, but not both sets of modifiers, so that sites which watch for e.g. Ctrl+<key> aren't confused when AltGr+<key> is pressed.

The behaviour you describe under Ubuntu - that the Alt modifier is reported when AltGr is pressed - is incorrect, so I've filed issue 857119 for us to fix Linux+ChromeOS to match the new behaviour.

Sign in to add a comment