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

Issue 1089163002: Pressing 'Delete' key in bookmark manager's search box deletes bookmark. (Closed)

Created:
5 years, 8 months ago by Deepak
Modified:
5 years, 8 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pressing 'Delete' key in bookmark manager's search box deletes bookmark. SeparateHandler has been added to handle delete and undo commands when search box is active or focused. BUG=462861 Committed: https://crrev.com/907b409a46af8efb63d83c46f8901d6f0d01c8fe Cr-Commit-Position: refs/heads/master@{#325258}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Changes as per review comments. #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M chrome/browser/resources/bookmark_manager/js/main.js View 1 2 3 4 5 6 7 3 chunks +15 lines, -4 lines 1 comment Download

Messages

Total messages: 20 (2 generated)
Deepak
When document.activeElement is input element during focus on search box, we are returning bmm.list.selectedItems, that ...
5 years, 8 months ago (2015-04-15 05:34:02 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/1089163002/diff/2/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/1089163002/diff/2/chrome/browser/resources/bookmark_manager/js/main.js#newcode494 chrome/browser/resources/bookmark_manager/js/main.js:494: // (fixes http://crbug.com/278112). Otherwise, because (Read my comments bottom-up ...
5 years, 8 months ago (2015-04-15 10:11:57 UTC) #3
Deepak
Thanks for review. I like your idea of silently swallow the delete event when we ...
5 years, 8 months ago (2015-04-15 11:24:24 UTC) #4
Bernhard Bauer
On 2015/04/15 11:24:24, Deepak wrote: > Thanks for review. > I like your idea of ...
5 years, 8 months ago (2015-04-15 11:47:52 UTC) #5
Deepak
On 2015/04/15 11:47:52, Bernhard Bauer wrote: > On 2015/04/15 11:24:24, Deepak wrote: > > Thanks ...
5 years, 8 months ago (2015-04-15 12:37:52 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/1089163002/diff/70001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/1089163002/diff/70001/chrome/browser/resources/bookmark_manager/js/main.js#newcode501 chrome/browser/resources/bookmark_manager/js/main.js:501: e.canExecute = e.currentTarget.activeElement !== $('term'); Right. This means however ...
5 years, 8 months ago (2015-04-15 12:51:16 UTC) #7
Deepak
On 2015/04/15 12:51:16, Bernhard Bauer wrote: > https://codereview.chromium.org/1089163002/diff/70001/chrome/browser/resources/bookmark_manager/js/main.js > File chrome/browser/resources/bookmark_manager/js/main.js (right): > > https://codereview.chromium.org/1089163002/diff/70001/chrome/browser/resources/bookmark_manager/js/main.js#newcode501 ...
5 years, 8 months ago (2015-04-15 14:15:04 UTC) #8
Bernhard Bauer
On 2015/04/15 14:15:04, Deepak wrote: > On 2015/04/15 12:51:16, Bernhard Bauer wrote: > > > ...
5 years, 8 months ago (2015-04-15 14:36:01 UTC) #9
Deepak
Thanks for confirming my understanding. Changes done as suggested. PTAL
5 years, 8 months ago (2015-04-15 14:49:44 UTC) #10
Bernhard Bauer
https://codereview.chromium.org/1089163002/diff/90001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (left): https://codereview.chromium.org/1089163002/diff/90001/chrome/browser/resources/bookmark_manager/js/main.js#oldcode496 chrome/browser/resources/bookmark_manager/js/main.js:496: e.canExecute = e.currentTarget.activeElement !== $('term'); For the undo command ...
5 years, 8 months ago (2015-04-15 14:54:45 UTC) #11
Deepak
Comments updated as suggested. PTAL. https://codereview.chromium.org/1089163002/diff/90001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (left): https://codereview.chromium.org/1089163002/diff/90001/chrome/browser/resources/bookmark_manager/js/main.js#oldcode496 chrome/browser/resources/bookmark_manager/js/main.js:496: e.canExecute = e.currentTarget.activeElement !== ...
5 years, 8 months ago (2015-04-15 15:04:15 UTC) #12
Bernhard Bauer
Just phrasing nits: https://codereview.chromium.org/1089163002/diff/110001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/1089163002/diff/110001/chrome/browser/resources/bookmark_manager/js/main.js#newcode479 chrome/browser/resources/bookmark_manager/js/main.js:479: // Pass the undo command through ...
5 years, 8 months ago (2015-04-15 15:08:56 UTC) #13
Deepak
Comments updated. PTAL https://codereview.chromium.org/1089163002/diff/110001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/1089163002/diff/110001/chrome/browser/resources/bookmark_manager/js/main.js#newcode479 chrome/browser/resources/bookmark_manager/js/main.js:479: // Pass the undo command through ...
5 years, 8 months ago (2015-04-15 15:20:38 UTC) #14
Bernhard Bauer
LGTM, thanks!
5 years, 8 months ago (2015-04-15 15:22:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089163002/130001
5 years, 8 months ago (2015-04-15 15:24:08 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:130001)
5 years, 8 months ago (2015-04-15 16:27:14 UTC) #18
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/907b409a46af8efb63d83c46f8901d6f0d01c8fe Cr-Commit-Position: refs/heads/master@{#325258}
5 years, 8 months ago (2015-04-15 16:28:12 UTC) #19
Bernhard Bauer
5 years, 8 months ago (2015-04-16 08:08:05 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/1089163002/diff/130001/chrome/browser/resourc...
File chrome/browser/resources/bookmark_manager/js/main.js (right):

https://codereview.chromium.org/1089163002/diff/130001/chrome/browser/resourc...
chrome/browser/resources/bookmark_manager/js/main.js:506: e.canExecute =
e.currentTarget.activeElement !== $('term');
Wait, this should be unconditionally set to true (the current behavior is not
wrong, but we know that the search field is not active, and that way this part
of the code does not have to deal with the search field at all).

Powered by Google App Engine
This is Rietveld 408576698