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

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: rebase 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..8857b43e0c3da321b2d0283fc4cd1e81b0a084c0 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -102,6 +102,12 @@ Polymer({
.showAndFocus();
},
Dan Beam 2016/07/15 03:07:41 nit: /** return {boolean} */
lshang 2016/07/15 05:02:09 Since we need to check both the search field is sh
+ showingSearchField: function() {
+ return /** @type {!CrToolbarElement} */(this.$['main-toolbar'])
+ .getSearchField()
+ .showingSearchStatus();
+ },
+
/**
* If the user is a supervised user the delete button is not shown.
* @private

Powered by Google App Engine
This is Rietveld 408576698