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

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

Issue 2166263002: MD History: Make the forward slash key to rely on focused only (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
« 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/md_history/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index 27070dd0c5820f73a86dab4aff8044937d981a24..eb953111821c6cae7bd0043e0b6097b8cb22702d 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -155,9 +155,7 @@ Polymer({
e.canExecute = true;
break;
case 'slash-command':
- e.canExecute =
- !(this.$.toolbar.searchBar.showingSearch &&
- this.$.toolbar.searchBar.isSearchFocused());
+ e.canExecute = !this.$.toolbar.searchBar.isSearchFocused();
break;
case 'delete-command':
e.canExecute = this.$.toolbar.count > 0;
« 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