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

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

Issue 1058533006: Bookmarked URL gets open in New tab, on pressing enter key for 'Folders' dropdown. (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 5bd11d1878021c2203668ef36e614a818529cd76..29b9f4805761c7135cc5134a536d0c543d93a0e5 100644
--- a/chrome/browser/resources/bookmark_manager/js/main.js
+++ b/chrome/browser/resources/bookmark_manager/js/main.js
@@ -506,6 +506,11 @@ function handleCanExecuteForDocument(e) {
e.canExecute = e.currentTarget.activeElement !== $('term');
break;
+ case 'open-in-same-window-command':
+ // open-in-same-window-command executes for list only.
+ e.canExecute = e.currentTarget.activeElement == bmm.list;
Bernhard Bauer 2015/04/16 09:01:19 There is also a second check below in canExecuteFo
+ 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