forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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}
- Loading branch information
1 parent
b1fca6e
commit 6e6760f
Showing
2 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters