commit | 6e6760f623d73159429bcd1cc69addf95531e790 | [log] [tgz] |
---|---|---|
author | Martin Kreichgauer <martinkr@google.com> | Wed Jun 26 20:32:35 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jun 26 20:32:35 2019 |
tree | 708d7fad8d91932991de3b1959c14394a70da7de | |
parent | b1fca6e91cf36019b3819b14f2bd07a09367a7d9 [diff] |
webui: make cr-dialog capture enter key presses from any input element Currently, the cr-dialog key press handler only triggers an action button click when an enter keypress event has an 'CR-INPUT' target. This means that if a cr-input is embedded in another custom element inside the cr-dialog, enter key presses to that cr-input will be ignored because the corresponding event gets retargeted to the custom element. Instead, make the keypress handler check that the first element in the composedPath() is an 'INPUT'. Bug: 955859 Change-Id: I486158fadbc32b95c3c3284240bfe4ae690d78d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1677597 Commit-Queue: Martin Kreichgauer <martinkr@google.com> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#672635}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .