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

Issue 1098803002: Context menu is not getting hided in chrome://bookmarks after delete key press. (Closed)

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

Description

Context menu is not getting hided in chrome://bookmarks after delete key press. We are getting context menu by selecting left mouse and by right mouse button on 'Action icon' in bookmarked item. 'Delete' key is currently not handled by menu.js as their is no selected item in the context menu. So then we should do preventDefault() and stopPropagation() in menu_button.js similar to context_menu_handler.js file. So we have same behavior for selecting 'Delete' key when we have context menu on 'Action' button by left/right click of mouse. As as we are stopping propagation of event so no delete will happen, and it will not go in unstable state. BUG=330587 Committed: https://crrev.com/f3700597c2e357838a8bbf2336fa329038c734e2 Cr-Commit-Position: refs/heads/master@{#325998}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Changes as per review comments. #

Total comments: 2

Patch Set 4 : Making indentation proper. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M ui/webui/resources/js/cr/ui/menu_button.js View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Deepak
PTAL Thanks
5 years, 8 months ago (2015-04-19 12:16:37 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/1098803002/diff/20001/ui/webui/resources/js/cr/ui/menu_button.js File ui/webui/resources/js/cr/ui/menu_button.js (right): https://codereview.chromium.org/1098803002/diff/20001/ui/webui/resources/js/cr/ui/menu_button.js#newcode253 ui/webui/resources/js/cr/ui/menu_button.js:253: case 'U+007F': // Delete This doesn't seem like the ...
5 years, 8 months ago (2015-04-20 10:46:40 UTC) #3
Deepak
Thanks for review. Changes done as suggested. PTAL https://codereview.chromium.org/1098803002/diff/20001/ui/webui/resources/js/cr/ui/menu_button.js File ui/webui/resources/js/cr/ui/menu_button.js (right): https://codereview.chromium.org/1098803002/diff/20001/ui/webui/resources/js/cr/ui/menu_button.js#newcode253 ui/webui/resources/js/cr/ui/menu_button.js:253: case ...
5 years, 8 months ago (2015-04-20 12:38:35 UTC) #4
Bernhard Bauer
Thanks! https://codereview.chromium.org/1098803002/diff/40001/ui/webui/resources/js/cr/ui/menu_button.js File ui/webui/resources/js/cr/ui/menu_button.js (right): https://codereview.chromium.org/1098803002/diff/40001/ui/webui/resources/js/cr/ui/menu_button.js#newcode126 ui/webui/resources/js/cr/ui/menu_button.js:126: this.menu.handleKeyDown(e); Indent two spaces less (should be indented ...
5 years, 8 months ago (2015-04-20 17:06:45 UTC) #5
Deepak
Thanks for review. Indentation done. PTAL https://codereview.chromium.org/1098803002/diff/40001/ui/webui/resources/js/cr/ui/menu_button.js File ui/webui/resources/js/cr/ui/menu_button.js (right): https://codereview.chromium.org/1098803002/diff/40001/ui/webui/resources/js/cr/ui/menu_button.js#newcode126 ui/webui/resources/js/cr/ui/menu_button.js:126: this.menu.handleKeyDown(e); On 2015/04/20 ...
5 years, 8 months ago (2015-04-21 04:06:37 UTC) #6
Bernhard Bauer
LGTM
5 years, 8 months ago (2015-04-21 07:40:09 UTC) #7
Deepak
On 2015/04/21 07:40:09, Bernhard Bauer wrote: > LGTM Thanks.
5 years, 8 months ago (2015-04-21 07:40:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1098803002/60001
5 years, 8 months ago (2015-04-21 07:40:54 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-21 09:22:42 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-21 09:23:35 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f3700597c2e357838a8bbf2336fa329038c734e2
Cr-Commit-Position: refs/heads/master@{#325998}

Powered by Google App Engine
This is Rietveld 408576698