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

Unified Diff: ui/webui/resources/js/cr/ui/menu_button.js

Issue 1098803002: Context menu is not getting hided in chrome://bookmarks after delete key press. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Making indentation proper. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/ui/menu_button.js
diff --git a/ui/webui/resources/js/cr/ui/menu_button.js b/ui/webui/resources/js/cr/ui/menu_button.js
index 8e27b8af40ba8b55c84600664f72bf3b2e438930..e240a3221511e4e1889b3ff2abf1225ca3ef9fae 100644
--- a/ui/webui/resources/js/cr/ui/menu_button.js
+++ b/ui/webui/resources/js/cr/ui/menu_button.js
@@ -123,10 +123,9 @@ cr.define('cr.ui', function() {
this.handleKeyDown(e);
// If the menu is visible we let it handle all the keyboard events.
if (this.isMenuShown() && e.currentTarget == this.ownerDocument) {
- if (this.menu.handleKeyDown(e)) {
- e.preventDefault();
- e.stopPropagation();
- }
+ this.menu.handleKeyDown(e);
+ e.preventDefault();
+ e.stopPropagation();
}
// Show the focus ring on keypress.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698