DescriptionDevTools: pressing enter in bound input fields should not fire change handler
When a user modifies a bound input's text and presses Enter, the bound callback
would fire once on keydown and once on the following 'change' event. This CL
prevents the default 'change' event from following up to avoid two calls.
BUG=621922
Review-Url: https://codereview.chromium.org/2843203003
Cr-Commit-Position: refs/heads/master@{#468433}
Committed: https://chromium.googlesource.com/chromium/src/+/b0fb333255e386d83f6d1b69d7239011e780ae4b
Patch Set 1 #
Total comments: 2
Patch Set 2 : keep enter listener and add preventDefault #Messages
Total messages: 12 (6 generated)
|