Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Issue 2843203003: DevTools: pressing enter in bound input fields should not fire change handler (Closed)

Created:
3 years, 7 months ago by luoe
Modified:
3 years, 7 months ago
Reviewers:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
luoe
This CL updates behavior of bindInput first introduced here: https://codereview.chromium.org/1642233002 While the bug only refers ...
3 years, 7 months ago (2017-04-27 20:19:02 UTC) #3
dgozman
https://codereview.chromium.org/2843203003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js File third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js (left): https://codereview.chromium.org/2843203003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js#oldcode1561 third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js:1561: if (isEnterKey(event)) { Why was this introduced in first ...
3 years, 7 months ago (2017-04-27 22:58:55 UTC) #4
luoe
https://codereview.chromium.org/2843203003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js File third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js (left): https://codereview.chromium.org/2843203003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js#oldcode1561 third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js:1561: if (isEnterKey(event)) { On 2017/04/27 22:58:55, dgozman wrote: > ...
3 years, 7 months ago (2017-04-29 03:29:59 UTC) #6
dgozman
Thank you for digging the information, that is very helpful! lgtm
3 years, 7 months ago (2017-05-01 18:37:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2843203003/20001
3 years, 7 months ago (2017-05-01 18:40:37 UTC) #9
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 21:50:29 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b0fb333255e386d83f6d1b69d723...

Powered by Google App Engine
This is Rietveld 408576698