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

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

Issue 2118383003: MD History: add shortcuts for search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: chrome/browser/resources/md_history/history_toolbar.js
diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js
index 13f9c35d6c704424fc288305e4f4d533a484c1ca..710861e7568c25fa54f1b31ff74f9422cc25ff73 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -96,6 +96,10 @@ Polymer({
this.fire('delete-selected');
},
+ onFindCommand: function() {
tsergeant 2016/07/05 07:47:22 Since there's nothing about this function that tie
lshang 2016/07/06 05:03:08 Done.
+ this.$['main-toolbar'].$['search'].showAndFocus();
tsergeant 2016/07/05 07:47:22 Use this.$['main-toolbar'].getSearchField().showA
lshang 2016/07/06 05:03:08 Done. Good point!
+ },
+
/**
* If the user is a supervised user the delete button is not shown.
* @private

Powered by Google App Engine
This is Rietveld 408576698