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

Issue 2152753003: MD History: Fix forward slash key not working in search field (Closed)

Created:
4 years, 5 months ago by lshang
Modified:
4 years, 5 months ago
Reviewers:
tsergeant, Dan Beam
CC:
chromium-reviews, dbeam+watch-elements_chromium.org, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, michaelpg+watch-elements_chromium.org, stevenjb+watch-md-settings_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD History: Fix forward slash key not working in search field We previously added a shortcut of forward slash key to open and focus the search field, but in this way when user inputs slash again it will be regarded as a shortcut, not a normal input. This CL fixes this by adding a check in onCanExecute(), if the search field is already opened, then the shortcut command can not be executed so that the forward slash key is regarded as normal input as search term. BUG=626996 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation;master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/f503cf604552d4a7e1e184575609bf632f40dd22 Cr-Commit-Position: refs/heads/master@{#406425}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 11

Patch Set 3 : address review comments #

Total comments: 4

Patch Set 4 : address review comments #

Total comments: 2

Patch Set 5 : I don't feel like to describe this patch, yeah~ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -5 lines) Patch
M chrome/browser/resources/md_history/app.js View 1 2 3 4 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history.html View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history_toolbar.js View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (13 generated)
lshang
PTAL thanks! XD
4 years, 5 months ago (2016-07-15 01:42:35 UTC) #5
Dan Beam
https://codereview.chromium.org/2152753003/diff/20001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/2152753003/diff/20001/chrome/browser/resources/md_history/app.js#newcode127 chrome/browser/resources/md_history/app.js:127: if (this.$.toolbar.showingSearchField()) don't you actually want whether the search ...
4 years, 5 months ago (2016-07-15 03:07:41 UTC) #7
tsergeant
https://codereview.chromium.org/2152753003/diff/20001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/2152753003/diff/20001/chrome/browser/resources/md_history/app.js#newcode127 chrome/browser/resources/md_history/app.js:127: if (this.$.toolbar.showingSearchField()) On 2016/07/15 03:07:40, Dan Beam wrote: > ...
4 years, 5 months ago (2016-07-15 04:06:21 UTC) #8
lshang
https://codereview.chromium.org/2152753003/diff/20001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/2152753003/diff/20001/chrome/browser/resources/md_history/app.js#newcode127 chrome/browser/resources/md_history/app.js:127: if (this.$.toolbar.showingSearchField()) On 2016/07/15 04:06:21, tsergeant wrote: > On ...
4 years, 5 months ago (2016-07-15 05:02:09 UTC) #9
Dan Beam
https://codereview.chromium.org/2152753003/diff/40001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/2152753003/diff/40001/chrome/browser/resources/md_history/app.js#newcode128 chrome/browser/resources/md_history/app.js:128: /** @type {CrSearchFieldElement} */ this.$.toolbar.$['main-toolbar'] this type should technically ...
4 years, 5 months ago (2016-07-15 05:28:51 UTC) #10
Dan Beam
https://codereview.chromium.org/2152753003/diff/80001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js (right): https://codereview.chromium.org/2152753003/diff/80001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js#newcode106 ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js:106: return this.$.searchInput.focused; searchInput -> searchTerm may fix your issues
4 years, 5 months ago (2016-07-19 00:28:55 UTC) #12
lshang
https://codereview.chromium.org/2152753003/diff/40001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/2152753003/diff/40001/chrome/browser/resources/md_history/app.js#newcode128 chrome/browser/resources/md_history/app.js:128: /** @type {CrSearchFieldElement} */ this.$.toolbar.$['main-toolbar'] On 2016/07/15 05:28:51, Dan ...
4 years, 5 months ago (2016-07-19 01:23:01 UTC) #14
Dan Beam
lgtm if closure likes this
4 years, 5 months ago (2016-07-19 01:44:13 UTC) #15
tsergeant
lgtm
4 years, 5 months ago (2016-07-19 03:34:13 UTC) #16
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-19 07:32:00 UTC) #19
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/2152753003/120001
4 years, 5 months ago (2016-07-20 00:12:33 UTC) #23
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-20 00:12:35 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 5 months ago (2016-07-20 00:18:26 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 00:18:35 UTC) #26
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 00:22:03 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f503cf604552d4a7e1e184575609bf632f40dd22
Cr-Commit-Position: refs/heads/master@{#406425}

Powered by Google App Engine
This is Rietveld 408576698