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

Unified Diff: chrome/browser/resources/bookmark_manager/js/main.js

Issue 1089163002: Pressing 'Delete' key in bookmark manager's search box deletes bookmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/resources/bookmark_manager/js/main.js
diff --git a/chrome/browser/resources/bookmark_manager/js/main.js b/chrome/browser/resources/bookmark_manager/js/main.js
index acfc3d7db701566ae61ea65a88c2c33d5ebf04f4..e1b6b8bd9a4fe4050a6e9acc2e0589df350c1610 100644
--- a/chrome/browser/resources/bookmark_manager/js/main.js
+++ b/chrome/browser/resources/bookmark_manager/js/main.js
@@ -496,6 +496,11 @@ function handleCanExecuteForDocument(e) {
e.canExecute = e.currentTarget.activeElement !== $('term');
break;
+ case 'delete-command':
+ // If the search box is active, pass the delete command
+ e.canExecute = e.currentTarget.activeElement !== $('term');
Bernhard Bauer 2015/04/15 12:51:16 Right. This means however that we will always make
+ break;
+
default:
canExecuteForList(e);
if (!e.defaultPrevented)
« 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