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

Issue 211593006: Make Views Textfield key handling execute commands. (Closed)

Created:
6 years, 9 months ago by msw
Modified:
6 years, 9 months ago
Reviewers:
Elliot Glaysher, oshima
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, penghuang+watch_chromium.org, nona+watch_chromium.org, James Su, jshin+watch_chromium.org
Visibility:
Public.

Description

Make Views Textfield key handling execute commands. Add commands similar to WebKit text editing commands. Translate key events to commands for textfield execution. Consolidate key handling and command execution code. Fix unit tests. Modify Windows behavior for CTRL+SHIFT+[BACK|DEL]. (now behaves the same as CTRL+[BACK|DEL], not no-op) BUG=319437 TEST=No behavior changes except for CTRL+SHIFT+[BACK|DEL] on Windows. R=oshima@chromium.org, erg@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260310

Patch Set 1 #

Patch Set 2 : Convert remaining key handling to commands, fix enabled checks. #

Total comments: 2

Patch Set 3 : Add GetCommandForKeyEvent helper; fix tests. #

Total comments: 4

Patch Set 4 : Add kNoCommand constant; update comments. #

Total comments: 2

Patch Set 5 : Only return true for enabled commands. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -162 lines) Patch
M ui/base/strings/ui_strings.grd View 1 2 3 2 chunks +61 lines, -1 line 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 6 chunks +177 lines, -124 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 5 chunks +21 lines, -37 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Elliot Glaysher
https://codereview.chromium.org/211593006/diff/40001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/211593006/diff/40001/ui/views/controls/textfield/textfield.cc#newcode976 ui/views/controls/textfield/textfield.cc:976: case IDS_MOVE_LEFT_AND_MODIFY_SELECTION: So, if we're going to have versions ...
6 years, 9 months ago (2014-03-28 22:47:49 UTC) #1
msw
https://codereview.chromium.org/211593006/diff/40001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/211593006/diff/40001/ui/views/controls/textfield/textfield.cc#newcode976 ui/views/controls/textfield/textfield.cc:976: case IDS_MOVE_LEFT_AND_MODIFY_SELECTION: On 2014/03/28 22:47:49, Elliot Glaysher wrote: > ...
6 years, 9 months ago (2014-03-28 22:55:29 UTC) #2
oshima
On 2014/03/28 22:55:29, msw wrote: > https://codereview.chromium.org/211593006/diff/40001/ui/views/controls/textfield/textfield.cc > File ui/views/controls/textfield/textfield.cc (right): > > https://codereview.chromium.org/211593006/diff/40001/ui/views/controls/textfield/textfield.cc#newcode976 > ...
6 years, 9 months ago (2014-03-28 23:14:45 UTC) #3
oshima
https://codereview.chromium.org/211593006/diff/60001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/211593006/diff/60001/ui/views/controls/textfield/textfield.cc#newcode60 ui/views/controls/textfield/textfield.cc:60: return 0; can you define a cont value for ...
6 years, 9 months ago (2014-03-28 23:23:26 UTC) #4
msw
Please take another look; thanks. https://codereview.chromium.org/211593006/diff/60001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/211593006/diff/60001/ui/views/controls/textfield/textfield.cc#newcode60 ui/views/controls/textfield/textfield.cc:60: return 0; On 2014/03/28 ...
6 years, 9 months ago (2014-03-28 23:36:11 UTC) #5
oshima
https://codereview.chromium.org/211593006/diff/80001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/211593006/diff/80001/ui/views/controls/textfield/textfield.cc#newcode502 ui/views/controls/textfield/textfield.cc:502: if (command != kNoCommand) { discussed offline and lgtm ...
6 years, 9 months ago (2014-03-28 23:53:25 UTC) #6
msw
Done; landing manually; prior try jobs look good. https://codereview.chromium.org/211593006/diff/80001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/211593006/diff/80001/ui/views/controls/textfield/textfield.cc#newcode502 ui/views/controls/textfield/textfield.cc:502: if ...
6 years, 9 months ago (2014-03-28 23:56:27 UTC) #7
msw
6 years, 9 months ago (2014-03-29 00:09:04 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 manually as r260310 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698