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

Unified Diff: chrome/browser/resources/md_history/app.js

Issue 2543593003: MD History: Add a keyboard shortcut to open grouped mode (Closed)
Patch Set: Rebase Created 4 years 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 | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index c62567f8863671a38e36fd92218ede5c74719f48..3c26c37faf3a4658a5eb27880b7286d2c164eae3 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -238,6 +238,7 @@ Polymer({
e = /** @type {cr.ui.CanExecuteEvent} */(e);
switch (e.command.id) {
case 'find-command':
+ case 'toggle-grouped':
e.canExecute = true;
break;
case 'slash-command':
@@ -258,6 +259,8 @@ Polymer({
this.focusToolbarSearchField();
if (e.command.id == 'delete-command')
this.deleteSelected();
+ if (e.command.id == 'toggle-grouped')
+ this.grouped_ = !this.grouped_;
},
/**
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698