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

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

Issue 2152753003: MD History: Fix forward slash key not working in search field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I don't feel like to describe this patch, yeah~ 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 d9e85ec15b600f13cc9f29b66a309fdf775c540a..9562c754ffc3a5706497e956fb8a73d3a0020839 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');
},
+ get searchBar() {
+ return this.$['main-toolbar'].getSearchField();
+ },
+
showSearchField: function() {
/** @type {!CrToolbarElement} */(this.$['main-toolbar'])
.getSearchField()

Powered by Google App Engine
This is Rietveld 408576698