WebUI cr-dialog: Change logic for accepting 'Enter' from input elements.
Problems with previous logic - Did not accept 'enter' for cr-input instances with type url' (example "add bookmark dialog") - Erroneously accepted 'enter' for cr-input instances with type 'search' (example "add languages dialog") Fixed by iterating on the event's |composedPath()| and looking whether a cr-input exists. Moreover, there was logic to limit <input> elements to the same types supported with <cr-input> which seems unnecessary (we only care about processing cr-input instances). Changed it to not accept <input> elements until the need arises. Fixed: 1010819 Change-Id: I25cf23c088318ee4b8003b65984cb735c8aec1b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1839032Reviewed-by:Martin Kreichgauer <martinkr@google.com> Reviewed-by:
John Lee <johntlee@chromium.org> Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#703049}
Showing
Please register or sign in to comment