Issue metadata
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 descriptionDevice 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.
,
Jan 23 2018
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!!
,
Jan 23 2018
Sandeep, Thanks for checking into this. I took a screencast which you can view here: https://streamable.com/m7ezk. -Casey
,
Jan 23 2018
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
,
Jan 24 2018
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."
,
Jan 24 2018
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!
,
Jan 24 2018
,
Jan 24 2018
,
Jan 24 2018
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.
,
Jan 24 2018
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.
,
Jan 24 2018
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 |
|||||||||||||||||||||||
Comment 1 by sandeepkumars@chromium.org
, Jan 23 2018