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

Unified Diff: chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js

Issue 2653023003: MD Settings: Update some dialogs to accept Enter key. (Closed)
Patch Set: add 3 more similar ones Created 3 years, 11 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/settings/search_engines_page/search_engine_dialog.js
diff --git a/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js b/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
index bf275f9ac548d4c2b67bf3c21e3443c3407f8cfc..b941b1b98403c92dbe87e2c1630b7fc2cce2d25c 100644
--- a/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
@@ -86,6 +86,10 @@ Polymer({
/** @private */
onActionButtonTap_: function() {
+ // This method may be called via keybinding, so we ignore invalid input.
+ if (this.$.actionButton.disabled)
+ return;
+
this.browserProxy_.searchEngineEditCompleted(
this.searchEngine_, this.keyword_, this.queryUrl_);
this.$.dialog.close();

Powered by Google App Engine
This is Rietveld 408576698