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

Unified Diff: ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js

Issue 2025583002: MD WebUI: Improve tab focus behavior for toolbar search field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 7 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: ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js
diff --git a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js b/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js
index b56c32974c1928bd89ac5110101c4336e434023f..3657f79f2600b74d83b7b4e4f754df3d87c44b32 100644
--- a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js
+++ b/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js
@@ -73,15 +73,13 @@ var CrSearchFieldBehavior = {
this.$.searchInput.focus();
},
- /** @private */
- onSearchTermSearch_: function() {
+ onSearchTermSearch: function() {
this.hasSearchText = this.getValue() != '';
if (this.delegate_)
this.delegate_.onSearchTermSearch(this.getValue());
},
- /** @private */
- onSearchTermKeydown_: function(e) {
+ onSearchTermKeydown: function(e) {
if (e.key == 'Escape')
this.showingSearch = false;
},
@@ -95,7 +93,7 @@ var CrSearchFieldBehavior = {
this.setValue('');
this.$.searchInput.blur();
- this.onSearchTermSearch_();
+ this.onSearchTermSearch();
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698