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

Issue 804622 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug-Regression



Sign in to add a comment

In a form with multiple inputs, pressing "Enter" focuses the next input instead triggering keyboard events

Reported by cas...@snapappointments.com, Jan 23 2018

Issue description

Device name: LG V30, Samsung Galaxy S4

From "Settings > About Chrome"
Application version: Chrome 63.0.3239.111, Chrome 62.0.3202.0
Operating system: Android 7.1.2, Android 5.0.1

URLs (if applicable): https://embed.plnkr.co/ReNeRbPX0lFFRr8SQGkM/

Steps to reproduce:
(1) Focus the first form field in the second form.
(2) Press "Enter" on phone's keyboard.

Expected result:
The 'keydown' event is triggered, and an alert with the text "keydown" pops up. Focus remains on the current field.

Actual result:
The next field in the form is focused, and the 'keydown' event is never triggered. This only happens if the currently focused input is *not* the last input or textarea in the form. To see it behave as expected, focus either the form field in the first form, or the second form field in the second form.

I have confirmed that this works as expected in Chrome 61.0.3163.98, and is only present after upgrading to Chrome 62.

 
Labels: Needs-triage-Mobile
Cc: sandeepkumars@chromium.org
Components: Blink>Layout
Labels: Triaged-Mobile Needs-Feedback
Tested the issue in Android and could not reproduce the issue.

Steps Followed:
1. Launched Chrome .
2. Navigated to https://embed.plnkr.co/ReNeRbPX0lFFRr8SQGkM/
3. Focused the first form field in the second form
4. Pressed "Enter" on phone's keyboard.
5. Observed focus on the same text field and keydown event triggered

Chrome versions tested:
63.0.3239.111

OS
Android 7.0.0, 6.0.1, 5.0.0

Android Devices
S7, S5, Micromax

@caseyh: Could you please attach a screencast for further triage.

Thanks!!

Sandeep,

Thanks for checking into this. I took a screencast which you can view here: https://streamable.com/m7ezk.

-Casey
Project Member

Comment 4 by sheriffbot@chromium.org, Jan 23 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sandeepkumars@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
I was able to test on my friend's phone and was able to recreate this issue. That was on a Samsung Galaxy S7 running Android 7.0.0, Chrome 63.0.3239.111. 

Steps:

1. Select "Input 2"
2. Press "Enter"
3. Alert does not pop up. Focus moves to "Input 3."
Cc: hangwan@chromium.org nyerramilli@chromium.org ligim...@chromium.org pnangunoori@chromium.org
Labels: -Pri-3 RegressedIn-62 M-66 Target-64 FoundIn-62 Pri-1 Type-Bug-Regression
Owner: ajit...@samsung.com
Status: Assigned (was: Unconfirmed)
Tested the issue in Android and able to reproduce the issue. 

Steps Followed:
1. Launched the Chrome 
2. Navigated to https://embed.plnkr.co/ReNeRbPX0lFFRr8SQGkM/
3. Focus the first form field in the second form.
4. Pressed "Enter" on phone's keyboard
5. Observed focus is moving to next field

Chrome versions tested:
63.0.3239.111(Stable)

OS:
Android 6.0.1

Android Devices:
Samsung S7

Using the per-revision bisect providing the bisect results,
Good build: 62.0.3179.2
Bad build: 62.0.3180.0

You are looking for a change made after 492587(GOOD), but before 492588(BAD).

CHANGELOG URL:
The script might not always return single CL as suspect as some perf builds might get missing due to failure.

https://chromium.googlesource.com/chromium/src/+/041c0b075176fb9bca94fd67fc1b6053a4df2e1c

From the CL's above, assigning the issue to the owner concerned.

@Ajith: Could you please look into the issue, and assign it to concerned owner if this is not related your change.

Please navigate to below link for log's and video--
go/chrome-androidlogs/804622

Note: This issue is not observed in Desktop.

Thanks!
Labels: hasbisect-per-revision
Labels: FoundIn-65 FoundIn-66 FoundIn-64 FoundIn-63
Cc: kochi@chromium.org changwan@chromium.org
Labels: -Target-64 ReleaseBlock-Stable Target-66 Target-65
Looping to few of the reviewers.

If possible can we target a fix for M66 or M65. Adding RBS fort M66, feel free to modify if needed.
Components: -Blink>Layout Blink>HTML>Focus UI>Input>Text>IME
Status: WontFix (was: Assigned)
This is an intended behavior change. Also, in  issue 790790  we decided to keep the current behavior.

On Android, IMEs never send 'enter' key event except on a physical keyboard. We decided not to translate 'focus change' request to key events because there are other ways to move focus such as touch events and mouse events.

Also, per  http://crbug.com/790790#c18  this does not work on Safari on iOS, either.
For what it's worth, I came across this bug when attempting to implement the Angular Material Chips component in my web app. Chips are added by pressing "Enter." With this change in Chrome for Android, it's not actually possible to add a chip in a form with multiple fields (see https://github.com/angular/material/issues/11081). This is an unexpected behavior change. To have no way to detect certain keyboard events (when it was previously possible) is very frustrating as a developer.

Sign in to add a comment